We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbe206 commit a23f188Copy full SHA for a23f188
src/comp/syntax/parse/parser.rs
@@ -147,7 +147,7 @@ fn bad_expr_word_table() -> hashmap<str, ()> {
147
"cont", "ret", "be", "fail", "type", "resource", "check",
148
"assert", "claim", "native", "fn", "pure",
149
"unsafe", "block", "import", "export", "let", "const",
150
- "log", "copy", "sendfn", "impl", "iface", "tag", "enum"] {
+ "log", "copy", "sendfn", "impl", "iface", "enum"] {
151
words.insert(word, ());
152
}
153
words
@@ -2154,7 +2154,7 @@ fn parse_item(p: parser, attrs: [ast::attribute]) -> option::t<@ast::item> {
2154
ret some(parse_item_native_mod(p, attrs));
2155
} if eat_word(p, "type") {
2156
ret some(parse_item_type(p, attrs));
2157
- } else if eat_word(p, "tag") || eat_word(p, "enum") {
+ } else if eat_word(p, "enum") {
2158
ret some(parse_item_tag(p, attrs));
2159
} else if eat_word(p, "iface") {
2160
ret some(parse_item_iface(p, attrs));
0 commit comments