diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-09-09 17:05:03 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-23 20:36:19 +0000 |
| commit | 21224e6ee07b917f7996b27f05c57327f806a026 (patch) | |
| tree | de129d5fa6e809386bc0f0e92e1ee828c78dfbea /compiler/rustc_parse/src/lexer/unicode_chars.rs | |
| parent | 4489aeb907eb4de3fc6eeb132e281ab725cf6b89 (diff) | |
| download | rust-21224e6ee07b917f7996b27f05c57327f806a026.tar.gz rust-21224e6ee07b917f7996b27f05c57327f806a026.zip | |
Account for confusable codepoints when recovering emoji identifiers
Diffstat (limited to 'compiler/rustc_parse/src/lexer/unicode_chars.rs')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/unicode_chars.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lexer/unicode_chars.rs b/compiler/rustc_parse/src/lexer/unicode_chars.rs index 3eebc088f3f..ccd11f06bc5 100644 --- a/compiler/rustc_parse/src/lexer/unicode_chars.rs +++ b/compiler/rustc_parse/src/lexer/unicode_chars.rs @@ -7,7 +7,7 @@ use rustc_errors::{Applicability, DiagnosticBuilder}; use rustc_span::{symbol::kw, BytePos, Pos, Span}; #[rustfmt::skip] // for line breaks -const UNICODE_ARRAY: &[(char, &str, char)] = &[ +pub(crate) const UNICODE_ARRAY: &[(char, &str, char)] = &[ (' ', "Line Separator", ' '), (' ', "Paragraph Separator", ' '), (' ', "Ogham Space mark", ' '), |
