Make the pretty-printer output whitespace before obj drop clause

This commit is contained in:
Marijn Haverbeke 2011-07-27 16:54:48 +02:00
parent 2593c50e75
commit 66b84e3f55
1 changed files with 5 additions and 1 deletions

View File

@ -507,7 +507,11 @@ fn print_item(s: &ps, item: &@ast::item) {
print_block(s, meth.node.meth.body);
}
alt _obj.dtor {
some(dtor) { head(s, "drop"); print_block(s, dtor.node.meth.body); }
some(dtor) {
space(s.s);
head(s, "drop");
print_block(s, dtor.node.meth.body);
}
_ { }
}
bclose(s, item.span);