diff options
| author | bors <bors@rust-lang.org> | 2013-09-11 19:16:00 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-11 19:16:00 -0700 |
| commit | 62166611e7510b86f395dbf19973e442fd43c403 (patch) | |
| tree | 013f5f4dd6e3a63450ff7145114732bcf7a347f6 /src/libsyntax/print | |
| parent | 91ab8a3f529e8b6735e0c8a998dc78667cabe40e (diff) | |
| parent | de799722dc057107a2601a4e8ff6ff08f3a8b16f (diff) | |
auto merge of #9061 : jakub-/rust/pretty-print-empty-impl, r=huonw
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 9b9b157c9d8..ec84cbda973 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -586,11 +586,13 @@ pub fn print_item(s: @ps, item: &ast::item) { }; print_type(s, ty); - space(s.s); if methods.len() == 0 { word(s.s, ";"); + end(s); // end the head-ibox + end(s); // end the outer cbox } else { + space(s.s); bopen(s); for meth in methods.iter() { print_method(s, *meth); |
