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:
@@ -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)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user