auto merge of #9061 : jakub-/rust/pretty-print-empty-impl, r=huonw

This commit is contained in:
bors 2013-09-11 19:16:00 -07:00
commit 62166611e7
3 changed files with 13 additions and 1 deletions

View File

@ -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);

View File

@ -0,0 +1,5 @@
trait X { }
impl X for uint;
trait Y { }
impl Y for uint;

View File

@ -0,0 +1,5 @@
trait X { }
impl X for uint;
trait Y { }
impl Y for uint;