1
Fork 0

fix for #8088 (Cannot name a struct field new due to ancient syntax)

remove code for parsing ancient syntax
added a run-pass test
This commit is contained in:
Do Nhat Minh 2013-08-17 14:43:13 +08:00
parent a1674b6150
commit 4457d2b379
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)];
}