Skip to content

Commit 407094e

Browse files
committed
Fix region printing in the prettyprinter
1 parent a407f74 commit 407094e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn print_region(s: ps, region: @ast::region) {
314314
ast::re_anon { word_space(s, "&"); }
315315
ast::re_named(name) {
316316
word(s.s, "&");
317-
word_space(s, *name);
317+
word(s.s, *name);
318318
}
319319
}
320320
}
@@ -860,7 +860,7 @@ fn print_vstore(s: ps, t: ast::vstore) {
860860
ast::vstore_fixed(none) { word(s.s, "_"); }
861861
ast::vstore_uniq { word(s.s, "~"); }
862862
ast::vstore_box { word(s.s, "@"); }
863-
ast::vstore_slice(r) { print_region(s, r); }
863+
ast::vstore_slice(r) { print_region(s, r); word(s.s, "."); }
864864
}
865865
}
866866

0 commit comments

Comments
 (0)