Skip to content

Commit 5979ed5

Browse files
committed
udpate comment to be more accurate
1 parent 2b5cbb2 commit 5979ed5

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_lexer/src

1 file changed

+1
-2
lines changed

compiler/rustc_lexer/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ impl Cursor<'_> {
413413
let kind = Str { terminated };
414414
Literal { kind, suffix_start }
415415
}
416-
// Identifier (this should be checked after other variant that can
417-
// start as identifier).
416+
// Identifier starting with an emoji. Only lexed for graceful error recovery.
418417
c if !c.is_ascii() && unic_emoji_char::is_emoji(c) => {
419418
self.fake_ident_or_unknown_prefix()
420419
}

0 commit comments

Comments
 (0)