]> git.lizzy.rs Git - rust.git/commitdiff
rustc: Stop parsing "tag"
authorPatrick Walton <pcwalton@mimiga.net>
Fri, 20 Jan 2012 03:23:05 +0000 (19:23 -0800)
committerPatrick Walton <pcwalton@mimiga.net>
Fri, 20 Jan 2012 03:23:47 +0000 (19:23 -0800)
src/comp/syntax/parse/parser.rs

index 61b562480edfbafed7d4c183b0ce3fcd10733354..ae0cf5bef60026fd9711a072b2fe4d449a040054 100644 (file)
@@ -147,7 +147,7 @@ fn bad_expr_word_table() -> hashmap<str, ()> {
                  "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));