mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Make the pretty-printer output whitespace before obj drop clause
This commit is contained in:
@@ -507,7 +507,11 @@ fn print_field(s: &ps, field: &ast::obj_field) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user