diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-28 16:38:07 +1100 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-28 17:31:18 +1100 | 
| commit | 43e017fd01c5ecb74dccee44c6f7b360cf7a518a (patch) | |
| tree | 1d146fffd29c121f9f0f5879ff265cf320be1db4 | |
| parent | 5f58985f5df2e7fbbef6c1acf54ece9df90ccbf3 (diff) | |
| download | rust-43e017fd01c5ecb74dccee44c6f7b360cf7a518a.tar.gz rust-43e017fd01c5ecb74dccee44c6f7b360cf7a518a.zip | |
Remove `rustc_transmute`'s dependence on `rustc_macros`.
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | compiler/rustc_transmute/Cargo.toml | 2 | ||||
| -rw-r--r-- | compiler/rustc_transmute/src/lib.rs | 3 | 
3 files changed, 1 insertions, 5 deletions
| diff --git a/Cargo.lock b/Cargo.lock index 4cb87ec4413..572d4c6b49d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4500,7 +4500,6 @@ dependencies = [ "rustc_abi", "rustc_data_structures", "rustc_hir", - "rustc_macros", "rustc_middle", "rustc_span", "tracing", diff --git a/compiler/rustc_transmute/Cargo.toml b/compiler/rustc_transmute/Cargo.toml index 3b6bb59196e..f0c783b3002 100644 --- a/compiler/rustc_transmute/Cargo.toml +++ b/compiler/rustc_transmute/Cargo.toml @@ -8,7 +8,6 @@ edition = "2024" rustc_abi = { path = "../rustc_abi", optional = true } rustc_data_structures = { path = "../rustc_data_structures" } rustc_hir = { path = "../rustc_hir", optional = true } -rustc_macros = { path = "../rustc_macros", optional = true } rustc_middle = { path = "../rustc_middle", optional = true } rustc_span = { path = "../rustc_span", optional = true } tracing = "0.1" @@ -18,7 +17,6 @@ tracing = "0.1" rustc = [ "dep:rustc_abi", "dep:rustc_hir", - "dep:rustc_macros", "dep:rustc_middle", "dep:rustc_span", ] diff --git a/compiler/rustc_transmute/src/lib.rs b/compiler/rustc_transmute/src/lib.rs index 9726c9e98aa..e10532af145 100644 --- a/compiler/rustc_transmute/src/lib.rs +++ b/compiler/rustc_transmute/src/lib.rs @@ -81,14 +81,13 @@ pub enum Reason<T> { #[cfg(feature = "rustc")] mod rustc { use rustc_hir::lang_items::LangItem; - use rustc_macros::TypeVisitable; use rustc_middle::traits::ObligationCause; use rustc_middle::ty::{Const, ParamEnv, Ty, TyCtxt}; use super::*; /// The source and destination types of a transmutation. - #[derive(TypeVisitable, Debug, Clone, Copy)] + #[derive(Debug, Clone, Copy)] pub struct Types<'tcx> { /// The source type. pub src: Ty<'tcx>, | 
