about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-08-22 07:26:26 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-08-27 13:59:32 +1000
commitdfa748e910b7b1cda37bfe709cd026da66a63e4c (patch)
tree7061ba544bdac00ca00d13d1272265fe5371be29
parent82c4b9c51b0257e2ad33903bc730cd4a6a69217b (diff)
downloadrust-dfa748e910b7b1cda37bfe709cd026da66a63e4c.tar.gz
rust-dfa748e910b7b1cda37bfe709cd026da66a63e4c.zip
Add `memchr` to `[workspace.dependencies]`.
-rw-r--r--Cargo.toml1
-rw-r--r--compiler/rustc_ast/Cargo.toml2
-rw-r--r--compiler/rustc_lexer/Cargo.toml2
3 files changed, 3 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f0c35bc4fc5..eef3ed43715 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,6 +62,7 @@ exclude = [
 [workspace.dependencies]
 # tidy-alphabetical-start
 bitflags = "2.9.3"
+memchr = "2.7.5"
 thin-vec = "0.2.14"
 # tidy-alphabetical-end
 
diff --git a/compiler/rustc_ast/Cargo.toml b/compiler/rustc_ast/Cargo.toml
index 08c8d539752..5eddc6e29e4 100644
--- a/compiler/rustc_ast/Cargo.toml
+++ b/compiler/rustc_ast/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2024"
 [dependencies]
 # tidy-alphabetical-start
 bitflags.workspace = true
-memchr = "2.7.4"
+memchr.workspace = true
 rustc-literal-escaper = "0.0.5"
 rustc_ast_ir = { path = "../rustc_ast_ir" }
 rustc_data_structures = { path = "../rustc_data_structures" }
diff --git a/compiler/rustc_lexer/Cargo.toml b/compiler/rustc_lexer/Cargo.toml
index 448a50faf45..b46f395a132 100644
--- a/compiler/rustc_lexer/Cargo.toml
+++ b/compiler/rustc_lexer/Cargo.toml
@@ -14,7 +14,7 @@ Rust lexer used by rustc. No stability guarantees are provided.
 
 # Note that this crate purposefully does not depend on other rustc crates
 [dependencies]
-memchr = "2.7.4"
+memchr.workspace = true
 unicode-xid = "0.2.0"
 
 [dependencies.unicode-properties]