about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-08 07:25:07 +0000
committerbors <bors@rust-lang.org>2025-09-08 07:25:07 +0000
commitbeeb8e3af54295ba494c250e84ecda4c2c5d85ff (patch)
treed19c1b03b6c7df056b27160bc7d910468d112e86 /library/alloc/src
parenta09fbe2c8372643a27a8082236120f95ed4e6bba (diff)
parenta8c669461f0c71985c72dd5b05f70b8d4d149e3b (diff)
downloadrust-beeb8e3af54295ba494c250e84ecda4c2c5d85ff.tar.gz
rust-beeb8e3af54295ba494c250e84ecda4c2c5d85ff.zip
Auto merge of #146173 - Kmeakin:km/unicode-data/no-ascii, r=jhpratt
Don't include ASCII characters in Unicode tables

Split off from https://github.com/rust-lang/rust/pull/145219
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/str.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs
index 22cdd8ecde0..e772ac25a95 100644
--- a/library/alloc/src/str.rs
+++ b/library/alloc/src/str.rs
@@ -418,9 +418,8 @@ impl str {
         }
 
         fn case_ignorable_then_cased<I: Iterator<Item = char>>(iter: I) -> bool {
-            use core::unicode::{Case_Ignorable, Cased};
-            match iter.skip_while(|&c| Case_Ignorable(c)).next() {
-                Some(c) => Cased(c),
+            match iter.skip_while(|&c| c.is_case_ignorable()).next() {
+                Some(c) => c.is_cased(),
                 None => false,
             }
         }