Skip to content

Commit 66b84e3

Browse files
committed
Make the pretty-printer output whitespace before obj drop clause
1 parent 2593c50 commit 66b84e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/comp/syntax/print/pprust.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,11 @@ fn print_item(s: &ps, item: &@ast::item) {
507507
print_block(s, meth.node.meth.body);
508508
}
509509
alt _obj.dtor {
510-
some(dtor) { head(s, "drop"); print_block(s, dtor.node.meth.body); }
510+
some(dtor) {
511+
space(s.s);
512+
head(s, "drop");
513+
print_block(s, dtor.node.meth.body);
514+
}
511515
_ { }
512516
}
513517
bclose(s, item.span);

0 commit comments

Comments
 (0)