diff options
| author | Do Nhat Minh <mrordinaire@gmail.com> | 2013-08-17 14:43:13 +0800 |
|---|---|---|
| committer | Do Nhat Minh <mrordinaire@gmail.com> | 2013-08-18 00:07:14 +0800 |
| commit | 4457d2b379c40415ac95d7cb7d98508bb919ff36 (patch) | |
| tree | dad2ae4c54973b210d64da8dd10292b7566d9b89 /src/libsyntax/parse/parser.rs | |
| parent | a1674b6150b20616c954e37206012b356ff81b1c (diff) | |
| download | rust-4457d2b379c40415ac95d7cb7d98508bb919ff36.tar.gz rust-4457d2b379c40415ac95d7cb7d98508bb919ff36.zip | |
fix for #8088 (Cannot name a struct field `new` due to ancient syntax)
remove code for parsing ancient syntax added a run-pass test
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a2664dcf890..af54dea3c33 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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)]; } |
