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:
parent
a1674b6150
commit
4457d2b379
4 changed files with 8 additions and 25 deletions
|
@ -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)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue