From a23f188bdbff224337ca6bdcd164bb924d273eb5 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 19 Jan 2012 19:23:05 -0800 Subject: rustc: Stop parsing "tag" --- src/comp/syntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/syntax/parse/parser.rs') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 61b562480ed..ae0cf5bef60 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -147,7 +147,7 @@ fn bad_expr_word_table() -> hashmap { "cont", "ret", "be", "fail", "type", "resource", "check", "assert", "claim", "native", "fn", "pure", "unsafe", "block", "import", "export", "let", "const", - "log", "copy", "sendfn", "impl", "iface", "tag", "enum"] { + "log", "copy", "sendfn", "impl", "iface", "enum"] { words.insert(word, ()); } words @@ -2154,7 +2154,7 @@ fn parse_item(p: parser, attrs: [ast::attribute]) -> option::t<@ast::item> { ret some(parse_item_native_mod(p, attrs)); } if eat_word(p, "type") { ret some(parse_item_type(p, attrs)); - } else if eat_word(p, "tag") || eat_word(p, "enum") { + } else if eat_word(p, "enum") { ret some(parse_item_tag(p, attrs)); } else if eat_word(p, "iface") { ret some(parse_item_iface(p, attrs)); -- cgit 1.4.1-3-g733a5