Skip to content

Commit 8f1a63c

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents 3238ab8 + 50075ff commit 8f1a63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/parser/src/lexed_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl<'a> Converter<'a> {
178178
rustc_lexer::TokenKind::Ident => {
179179
SyntaxKind::from_keyword(token_text).unwrap_or(IDENT)
180180
}
181-
rustc_lexer::TokenKind::InvalidIdent => {
181+
rustc_lexer::TokenKind::InvalidPrefix | rustc_lexer::TokenKind::InvalidIdent => {
182182
err = "Ident contains invalid characters";
183183
IDENT
184184
}

0 commit comments

Comments
 (0)