diff options
| author | bors <bors@rust-lang.org> | 2025-08-30 14:18:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-30 14:18:21 +0000 |
| commit | 0f506968010fa987b0d134034d0ccab9eecd9120 (patch) | |
| tree | 53abfd8e7b5abaa7f36904768540805de617850c /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | e95db591a4550e28ad92660b753ad85b89271882 (diff) | |
| parent | 1bb9b151c9f9b5116254827f04add845aff33408 (diff) | |
| download | rust-0f506968010fa987b0d134034d0ccab9eecd9120.tar.gz rust-0f506968010fa987b0d134034d0ccab9eecd9120.zip | |
Auto merge of #145479 - Kmeakin:km/hardcode-char-is-control, r=joboet
Hard-code `char::is_control` Split off from https://github.com/rust-lang/rust/pull/145219 According to https://www.unicode.org/policies/stability_policy.html#Property_Value, the set of codepoints in `Cc` will never change. So we can hard-code the patterns to match against instead of using a table. This doesn't change the generated assembly, since the lookup table is small enough that[ LLVM is able to inline the whole search](https://godbolt.org/z/bG8dM37YG). But this does reduce the chance of regressions if LLVM's heuristics change in the future, and means less generated Rust code checked in to `unicode-data.rs`.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
