mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:02:38 +03:00
4e7aeaf1b5
These methods explicitly check if a char is in a specific ASCII range, therefore the `is_ascii()` check is not needed, but LLVM seems to be unable to remove it. WARNING: this change improves the performance on ASCII `char`s, but complex checks such as `is_ascii_punctuation` become slower on non-ASCII `char`s.