File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ impl EarlyLintPass for DisallowedScriptIdents {
89
89
// Fast path for ascii-only idents.
90
90
if !symbol_str. is_ascii ( )
91
91
&& let Some ( script) = symbol_str. chars ( ) . find_map ( |c| {
92
+ if c. is_ascii ( ) {
93
+ return None ;
94
+ }
95
+
92
96
c. script_extension ( )
93
97
. iter ( )
94
98
. find ( |script| !self . whitelist . contains ( script) )
Original file line number Diff line number Diff line change @@ -15,3 +15,17 @@ fn main() {
15
15
let カウンタ = 10 ;
16
16
//~^ disallowed_script_idents
17
17
}
18
+
19
+ fn issue15116 ( ) {
20
+ const ÄÖÜ: u8 = 0 ;
21
+ const _ÄÖÜ: u8 = 0 ;
22
+ const Ä_ÖÜ: u8 = 0 ;
23
+ const ÄÖ_Ü: u8 = 0 ;
24
+ const ÄÖÜ_: u8 = 0 ;
25
+ let äöüß = 1 ;
26
+ let _äöüß = 1 ;
27
+ let ä_öüß = 1 ;
28
+ let äö_üß = 1 ;
29
+ let äöü_ß = 1 ;
30
+ let äöüß_ = 1 ;
31
+ }
You can’t perform that action at this time.
0 commit comments