summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-07-12 16:24:22 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-07-12 18:09:31 -0700
commit407094e39a41ba2a6c69ee9cfaba5f600c5632b0 (patch)
tree86a9755a13bd39a3a6acf0bca132d44b94f69e36 /src/libsyntax
parenta407f74d6d3ccf13dc188c64b70b9a86db831f6b (diff)
downloadrust-407094e39a41ba2a6c69ee9cfaba5f600c5632b0.tar.gz
rust-407094e39a41ba2a6c69ee9cfaba5f600c5632b0.zip
Fix region printing in the prettyprinter
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/print/pprust.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 7e7dff4de12..7a41bb936a3 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -314,7 +314,7 @@ fn print_region(s: ps, region: @ast::region) {
       ast::re_anon { word_space(s, "&"); }
       ast::re_named(name) {
         word(s.s, "&");
-        word_space(s, *name);
+        word(s.s, *name);
       }
     }
 }
@@ -860,7 +860,7 @@ fn print_vstore(s: ps, t: ast::vstore) {
       ast::vstore_fixed(none) { word(s.s, "_"); }
       ast::vstore_uniq { word(s.s, "~"); }
       ast::vstore_box { word(s.s, "@"); }
-      ast::vstore_slice(r) { print_region(s, r); }
+      ast::vstore_slice(r) { print_region(s, r); word(s.s, "."); }
     }
 }