mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 13:24:22 +00:00
Fix region printing in the prettyprinter
This commit is contained in:
parent
a407f74d6d
commit
407094e39a
@ -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, "."); }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user