We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5cbb2 commit 5979ed5Copy full SHA for 5979ed5
compiler/rustc_lexer/src/lib.rs
@@ -413,8 +413,7 @@ impl Cursor<'_> {
413
let kind = Str { terminated };
414
Literal { kind, suffix_start }
415
}
416
- // Identifier (this should be checked after other variant that can
417
- // start as identifier).
+ // Identifier starting with an emoji. Only lexed for graceful error recovery.
418
c if !c.is_ascii() && unic_emoji_char::is_emoji(c) => {
419
self.fake_ident_or_unknown_prefix()
420
0 commit comments