diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-07-27 16:54:48 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-07-27 16:54:48 +0200 |
| commit | 66b84e3f550cc2f6c879f33258441f7a204bb821 (patch) | |
| tree | 1a3757da1b5c335a448486dd577475d1190a6168 | |
| parent | 2593c50e7526a2b78690dba10247a419ab4d3163 (diff) | |
| download | rust-66b84e3f550cc2f6c879f33258441f7a204bb821.tar.gz rust-66b84e3f550cc2f6c879f33258441f7a204bb821.zip | |
Make the pretty-printer output whitespace before obj drop clause
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index 2b7339c113b..623089ba150 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -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); |
