about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/lib.rs
diff options
context:
space:
mode:
authorEsteban Kuber <esteban@kuber.com.ar>2021-09-10 07:36:01 +0000
committerEsteban Kuber <esteban@kuber.com.ar>2021-11-23 20:37:23 +0000
commit38979a3ba167e6937dee5e434f66aded57d23926 (patch)
tree38d0153b3c7c3f47b41b0b51cede0003e05b6a49 /compiler/rustc_lexer/src/lib.rs
parent143f78419934b63313ca8a4dd8e55e9ff5f858bb (diff)
downloadrust-38979a3ba167e6937dee5e434f66aded57d23926.tar.gz
rust-38979a3ba167e6937dee5e434f66aded57d23926.zip
udpate comment to be more accurate
Diffstat (limited to 'compiler/rustc_lexer/src/lib.rs')
-rw-r--r--compiler/rustc_lexer/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs
index a729c0c0bbe..44b002fa93f 100644
--- a/compiler/rustc_lexer/src/lib.rs
+++ b/compiler/rustc_lexer/src/lib.rs
@@ -413,8 +413,7 @@ impl Cursor<'_> {
                 let kind = Str { terminated };
                 Literal { kind, suffix_start }
             }
-            // Identifier (this should be checked after other variant that can
-            // start as identifier).
+            // Identifier starting with an emoji. Only lexed for graceful error recovery.
             c if !c.is_ascii() && unic_emoji_char::is_emoji(c) => {
                 self.fake_ident_or_unknown_prefix()
             }