auto merge of #8573 : mrordinaire/rust/struct-new-as-field-name, r=alexcrichton

fix for #8088, along with a test.
This commit is contained in:
bors
2013-08-20 21:41:50 -07:00
4 changed files with 8 additions and 25 deletions

View File

@@ -3929,10 +3929,6 @@ impl Parser {
return ~[self.parse_single_struct_field(public, attrs)];
}
if self.try_parse_obsolete_struct_ctor() {
return ~[];
}
return ~[self.parse_single_struct_field(inherited, attrs)];
}