From 1ed566026633c20f7bbb2d1d5edcf558dcb7ef37 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 27 Aug 2025 20:07:35 +1000 Subject: [PATCH] Add `proc-macro2` and `quote` to `[workspace.dependencies]`. --- Cargo.toml | 2 ++ compiler/rustc_fluent_macro/Cargo.toml | 4 ++-- compiler/rustc_index_macros/Cargo.toml | 4 ++-- compiler/rustc_macros/Cargo.toml | 4 ++-- compiler/rustc_type_ir_macros/Cargo.toml | 4 ++-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d7408cd48ae7..68c4ad465871 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,6 +68,8 @@ itertools = "0.12.1" # https://github.com/bytecodealliance/rustix/issues/1496 libc = "=0.2.174" memchr = "2.7.5" +proc-macro2 = "1.0.101" +quote = "1.0.40" rustc-literal-escaper = "0.0.5" serde_json = "1.0.142" thin-vec = "0.2.14" diff --git a/compiler/rustc_fluent_macro/Cargo.toml b/compiler/rustc_fluent_macro/Cargo.toml index d7ef4280aef0..60afd9aca87e 100644 --- a/compiler/rustc_fluent_macro/Cargo.toml +++ b/compiler/rustc_fluent_macro/Cargo.toml @@ -11,8 +11,8 @@ proc-macro = true annotate-snippets = "0.11" fluent-bundle = "0.16" fluent-syntax = "0.12" -proc-macro2 = "1" -quote = "1" +proc-macro2.workspace = true +quote.workspace = true syn = { version = "2", features = ["full"] } unic-langid = { version = "0.9.0", features = ["macros"] } # tidy-alphabetical-end diff --git a/compiler/rustc_index_macros/Cargo.toml b/compiler/rustc_index_macros/Cargo.toml index 34f3109a526b..8593bde26151 100644 --- a/compiler/rustc_index_macros/Cargo.toml +++ b/compiler/rustc_index_macros/Cargo.toml @@ -8,8 +8,8 @@ proc-macro = true [dependencies] # tidy-alphabetical-start -proc-macro2 = "1" -quote = "1" +proc-macro2.workspace = true +quote.workspace = true syn = { version = "2.0.9", features = ["full", "extra-traits"] } # tidy-alphabetical-end diff --git a/compiler/rustc_macros/Cargo.toml b/compiler/rustc_macros/Cargo.toml index f9d3b7583590..5add2691b886 100644 --- a/compiler/rustc_macros/Cargo.toml +++ b/compiler/rustc_macros/Cargo.toml @@ -8,8 +8,8 @@ proc-macro = true [dependencies] # tidy-alphabetical-start -proc-macro2 = "1" -quote = "1" +proc-macro2.workspace = true +quote.workspace = true syn = { version = "2.0.9", features = ["full"] } synstructure = "0.13.0" # tidy-alphabetical-end diff --git a/compiler/rustc_type_ir_macros/Cargo.toml b/compiler/rustc_type_ir_macros/Cargo.toml index 15a555750992..29a2cc890335 100644 --- a/compiler/rustc_type_ir_macros/Cargo.toml +++ b/compiler/rustc_type_ir_macros/Cargo.toml @@ -8,8 +8,8 @@ proc-macro = true [dependencies] # tidy-alphabetical-start -proc-macro2 = "1" -quote = "1" +proc-macro2.workspace = true +quote.workspace = true syn = { version = "2.0.9", features = ["full"] } synstructure = "0.13.0" # tidy-alphabetical-end