summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-09-12 11:53:32 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-09-12 12:48:59 +0200
commitbfa021de0d479af06ee9d0b1d77f991da6ed1753 (patch)
tree1d44430e7282cfb8804ae8daa8a0e9839aeb2338 /src/comp
parent3667137a4104ecde5c37f128d6d8c6080529f89f (diff)
downloadrust-bfa021de0d479af06ee9d0b1d77f991da6ed1753.tar.gz
rust-bfa021de0d479af06ee9d0b1d77f991da6ed1753.zip
Switch pretty-printer to new arg-mode syntax
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/syntax/print/pprust.rs4
1 files 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. { }
     }