Skip to content

Commit a44c939

Browse files
Grammar check: update rustc for forced keywords
1 parent 52ffdc0 commit a44c939

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/grammar-check/src/tools/rustc.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ fn to_reference_name(kind: &TokenKind) -> String {
223223
rustc_ast::token::LitKind::Err(_) => "Literal Error",
224224
},
225225
TokenKind::Ident(_, IdentKind::Normal) => "IDENTIFIER_OR_KEYWORD",
226+
TokenKind::Ident(_, IdentKind::ForcedKeyword) => "IDENTIFIER_OR_KEYWORD",
226227
TokenKind::Ident(_, IdentKind::Raw) => "RAW_IDENTIFIER",
227228
TokenKind::NtIdent(..) => panic!("unexpected NtIdent"),
228229
TokenKind::Lifetime(..) => "LIFETIME_TOKEN",

0 commit comments

Comments
 (0)