From bfa021de0d479af06ee9d0b1d77f991da6ed1753 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 12 Sep 2011 11:53:32 +0200 Subject: [PATCH] Switch pretty-printer to new arg-mode syntax --- src/comp/syntax/print/pprust.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index b1ecf450c5d..91ffc8476fd 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -1212,8 +1212,8 @@ fn print_fn_args_and_ret(s: ps, decl: ast::fn_decl, constrs: [@ast::constr]) { popen(s); fn print_arg(s: ps, x: ast::arg) { ibox(s, indent_unit); - word_space(s, x.ident + ":"); print_alias(s, x.mode); + word_space(s, x.ident + ":"); print_type(s, x.ty); end(s); } @@ -1243,7 +1243,7 @@ fn print_fn_block_args(s: ps, decl: ast::fn_decl) { fn print_alias(s: ps, m: ast::mode) { alt m { - ast::by_mut_ref. { word_space(s, "&mutable"); } + ast::by_mut_ref. { word(s.s, "&"); } ast::by_move. { word(s.s, "-"); } ast::by_ref. { } }