diff options
| author | bors <bors@rust-lang.org> | 2013-09-24 15:45:57 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-24 15:45:57 -0700 |
| commit | a7d68adbdd75300a4a10b2dcc59e1048f613db48 (patch) | |
| tree | 848fdb582c80f1e1fa4d62373bb139fa3799b722 /src/libsyntax/print | |
| parent | e3624ed968905b789b35c2301eb3c8057c05b3b3 (diff) | |
| parent | 4b266f1c0df9732bbdea44b0df3d459d4cf2756d (diff) | |
auto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphism
Progress on #7981 This doesn't completely close the issue because `struct A;` is still allowed, and it's a much larger change to disallow that. I'm also not entirely sure that we want to disallow that. Regardless, punting that discussion to the issue instead.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 867e4fe416b..dee8d710a73 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -598,18 +598,12 @@ pub fn print_item(s: @ps, item: &ast::item) { print_type(s, ty); - 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); - } - bclose(s, item.span); + space(s.s); + bopen(s); + for meth in methods.iter() { + print_method(s, *meth); } + bclose(s, item.span); } ast::item_trait(ref generics, ref traits, ref methods) => { head(s, visibility_qualified(item.vis, "trait")); |
