libsyntax: Remove fn@, fn~, and fn& from libsyntax. rs=defun

This commit is contained in:
Patrick Walton
2013-03-01 13:30:06 -08:00
parent 97fd421319
commit 256afb8a10
9 changed files with 181 additions and 194 deletions

View File

@@ -47,8 +47,8 @@ pub enum ann_node/& {
node_pat(@ps, @ast::pat),
}
pub struct pp_ann {
pre: fn@(ann_node),
post: fn@(ann_node)
pre: @fn(ann_node),
post: @fn(ann_node)
}
pub fn no_ann() -> pp_ann {
@@ -2190,7 +2190,7 @@ pub fn print_string(s: @ps, st: ~str) {
word(s.s, ~"\"");
}
pub fn to_str<T>(t: T, f: fn@(@ps, T), intr: @ident_interner) -> ~str {
pub fn to_str<T>(t: T, f: @fn(@ps, T), intr: @ident_interner) -> ~str {
do io::with_str_writer |wr| {
let s = rust_printer(wr, intr);
f(s, t);