From 4457d2b379c40415ac95d7cb7d98508bb919ff36 Mon Sep 17 00:00:00 2001 From: Do Nhat Minh Date: Sat, 17 Aug 2013 14:43:13 +0800 Subject: fix for #8088 (Cannot name a struct field `new` due to ancient syntax) remove code for parsing ancient syntax added a run-pass test --- src/libsyntax/parse/parser.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/libsyntax/parse/parser.rs') 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)]; } -- cgit 1.4.1-3-g733a5