Skip to content

Commit 09bc972

Browse files
committed
Never inline lookup_slow.
1 parent 7ced5df commit 09bc972

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/unicode/unicode_data.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ pub mod grapheme_extend {
433433
pub fn lookup(c: char) -> bool {
434434
(c as u32) >= 0x300 && lookup_slow(c)
435435
}
436+
437+
#[inline(never)]
436438
fn lookup_slow(c: char) -> bool {
437439
const {
438440
assert!(SHORT_OFFSET_RUNS.last().unwrap().0 > (char::MAX as u32));

0 commit comments

Comments
 (0)