]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/print/pprust.rs
auto merge of #9336 : alexcrichton/rust/issue-7981, r=catamorphism
[rust.git] / src / libsyntax / print / pprust.rs
index 867e4fe416b1d35ec5fda6f577dcde43e314754e..dee8d710a73ad7162d5f33daacbbeaef4f7ce7aa 100644 (file)
@@ -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"));