about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/util
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2023-01-22 13:05:47 +0100
committerKonrad Borowski <konrad@borowski.pw>2023-01-22 13:05:47 +0100
commitf72e17f8fbcc96b103bb5c9b7b63e2f0e21e5f75 (patch)
treebe4d02765ad592a85f3d657d8c3e4c71f8bce1c7 /compiler/rustc_ast/src/util
parente6485ed22a617ab0d122cdd616cb62c31b920a57 (diff)
downloadrust-f72e17f8fbcc96b103bb5c9b7b63e2f0e21e5f75.tar.gz
rust-f72e17f8fbcc96b103bb5c9b7b63e2f0e21e5f75.zip
Remove dependency on slice_internals feature in rustc_ast
Diffstat (limited to 'compiler/rustc_ast/src/util')
-rw-r--r--compiler/rustc_ast/src/util/unicode.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/util/unicode.rs b/compiler/rustc_ast/src/util/unicode.rs
index 0eae791b25e..6f57d66b227 100644
--- a/compiler/rustc_ast/src/util/unicode.rs
+++ b/compiler/rustc_ast/src/util/unicode.rs
@@ -17,7 +17,7 @@ pub fn contains_text_flow_control_chars(s: &str) -> bool {
     // U+2069 - E2 81 A9
     let mut bytes = s.as_bytes();
     loop {
-        match core::slice::memchr::memchr(0xE2, bytes) {
+        match memchr::memchr(0xE2, bytes) {
             Some(idx) => {
                 // bytes are valid UTF-8 -> E2 must be followed by two bytes
                 let ch = &bytes[idx..idx + 3];