about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-20 21:41:50 -0700
committerbors <bors@rust-lang.org>2013-08-20 21:41:50 -0700
commit00dd9e9cc57d1925df8362d02c6504b01d8105e3 (patch)
tree2a25f32074b8924afdb37c079b9e813822dde79b /src/libsyntax/parse/parser.rs
parentd56b9b102b307b473487402b0e494975206237b6 (diff)
parent4457d2b379c40415ac95d7cb7d98508bb919ff36 (diff)
downloadrust-00dd9e9cc57d1925df8362d02c6504b01d8105e3.tar.gz
rust-00dd9e9cc57d1925df8362d02c6504b01d8105e3.zip
auto merge of #8573 : mrordinaire/rust/struct-new-as-field-name, r=alexcrichton
fix for #8088, along with a test.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index de7abb8d1f4..2b977153b03 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)];
     }