From 93a0763d53f7b6f036e5624f89eaac28ea452fe8 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 25 Oct 2012 14:18:48 -0700 Subject: libsyntax: Don't write a ctor ID for struct-like enum variants. rs=rustbot --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 23ddf61606d..b9a71667012 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3081,7 +3081,7 @@ impl Parser { fields: move fields, methods: move methods, dtor: actual_dtor, - ctor_id: Some(self.get_id()) + ctor_id: None }; } -- cgit 1.4.1-3-g733a5