We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aa43af commit 0a09e76Copy full SHA for 0a09e76
src/libsyntax/parse/parser.rs
@@ -7713,11 +7713,7 @@ impl<'a> Parser<'a> {
7713
variants.push(respan(vlo.to(self.prev_span), vr));
7714
7715
if !self.eat(&token::Comma) {
7716
- if self.token.is_ident() &&
7717
- !self.token.is_special_ident() &&
7718
- !self.token.is_used_keyword() &&
7719
- !self.token.is_unused_keyword()
7720
- {
+ if self.token.is_ident() && !self.token.is_reserved_ident() {
7721
let sp = self.sess.source_map().next_point(self.prev_span);
7722
let mut err = self.struct_span_err(sp, "missing comma");
7723
err.span_suggestion_short(
0 commit comments