Skip to content

Commit a23f188

Browse files
committed
rustc: Stop parsing "tag"
1 parent fdbe206 commit a23f188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ fn bad_expr_word_table() -> hashmap<str, ()> {
147147
"cont", "ret", "be", "fail", "type", "resource", "check",
148148
"assert", "claim", "native", "fn", "pure",
149149
"unsafe", "block", "import", "export", "let", "const",
150-
"log", "copy", "sendfn", "impl", "iface", "tag", "enum"] {
150+
"log", "copy", "sendfn", "impl", "iface", "enum"] {
151151
words.insert(word, ());
152152
}
153153
words
@@ -2154,7 +2154,7 @@ fn parse_item(p: parser, attrs: [ast::attribute]) -> option::t<@ast::item> {
21542154
ret some(parse_item_native_mod(p, attrs));
21552155
} if eat_word(p, "type") {
21562156
ret some(parse_item_type(p, attrs));
2157-
} else if eat_word(p, "tag") || eat_word(p, "enum") {
2157+
} else if eat_word(p, "enum") {
21582158
ret some(parse_item_tag(p, attrs));
21592159
} else if eat_word(p, "iface") {
21602160
ret some(parse_item_iface(p, attrs));

0 commit comments

Comments
 (0)