We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49742b8 commit 4eef7b6Copy full SHA for 4eef7b6
src/comp/pretty/pprust.rs
@@ -285,6 +285,7 @@ fn print_item(&ps s, &@ast::item item) {
285
}
286
case (ast::item_mod(?id,?_mod,_)) {
287
head(s, "mod");
288
+ word_nbsp(s, id);
289
bopen(s);
290
for (@ast::item itm in _mod.items) {print_item(s, itm);}
291
bclose(s, item.span);
@@ -481,11 +482,11 @@ fn print_expr(&ps s, &@ast::expr expr) {
481
482
483
alt (expr.node) {
484
case (ast::expr_vec(?exprs,?mut,_)) {
485
+ ibox(s.s, indent_unit);
486
+ word(s.s, "[");
487
if (mut == ast::mut) {
488
word_nbsp(s, "mutable");
489
- ibox(s.s, indent_unit);
- word(s.s, "[");
490
commasep_exprs(s, inconsistent, exprs);
491
word(s.s, "]");
492
end(s.s);
0 commit comments