about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-03-10 15:04:43 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-03-16 17:47:57 -0700
commit0a09e76c967cfe0eb43ccdf1bddc715cd3b81f41 (patch)
treebd3798f4baa37bcd19dcbf88c40a9ff9e7ca489e /src/libsyntax/parse
parent1aa43af37018f285544b234d65b24efb465d18cb (diff)
downloadrust-0a09e76c967cfe0eb43ccdf1bddc715cd3b81f41.tar.gz
rust-0a09e76c967cfe0eb43ccdf1bddc715cd3b81f41.zip
Simplify check
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 0ec8cb51fa7..1ea9ab87c3f 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -7713,11 +7713,7 @@ impl<'a> Parser<'a> {
             variants.push(respan(vlo.to(self.prev_span), vr));
 
             if !self.eat(&token::Comma) {
-                if self.token.is_ident() &&
-                    !self.token.is_special_ident() &&
-                    !self.token.is_used_keyword() &&
-                    !self.token.is_unused_keyword()
-                {
+                if self.token.is_ident() && !self.token.is_reserved_ident() {
                     let sp = self.sess.source_map().next_point(self.prev_span);
                     let mut err = self.struct_span_err(sp, "missing comma");
                     err.span_suggestion_short(