File tree 2 files changed +4
-0
lines changed
src/tools/unicode-table-generator/src
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,8 @@ pub mod grapheme_extend {
433
433
pub fn lookup ( c : char ) -> bool {
434
434
( c as u32 ) >= 0x300 && lookup_slow ( c)
435
435
}
436
+
437
+ #[ inline( never) ]
436
438
fn lookup_slow ( c : char ) -> bool {
437
439
const {
438
440
assert ! ( SHORT_OFFSET_RUNS . last( ) . unwrap( ) . 0 > ( char :: MAX as u32 ) ) ;
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ impl RawEmitter {
105
105
writeln ! ( & mut self . file, " (c as u32) >= {first_code_point:#04x} && lookup_slow(c)" )
106
106
. unwrap ( ) ;
107
107
writeln ! ( & mut self . file, "}}" ) . unwrap ( ) ;
108
+ writeln ! ( & mut self . file) . unwrap ( ) ;
109
+ writeln ! ( & mut self . file, "#[inline(never)]" ) . unwrap ( ) ;
108
110
writeln ! ( & mut self . file, "fn lookup_slow(c: char) -> bool {{" ) . unwrap ( ) ;
109
111
} else {
110
112
writeln ! ( & mut self . file, "pub fn lookup(c: char) -> bool {{" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments