Skip to content

Commit 43e017f

Browse files
committed
Remove rustc_transmute's dependence on rustc_macros.
1 parent 5f58985 commit 43e017f

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4500,7 +4500,6 @@ dependencies = [
45004500
"rustc_abi",
45014501
"rustc_data_structures",
45024502
"rustc_hir",
4503-
"rustc_macros",
45044503
"rustc_middle",
45054504
"rustc_span",
45064505
"tracing",

compiler/rustc_transmute/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2024"
88
rustc_abi = { path = "../rustc_abi", optional = true }
99
rustc_data_structures = { path = "../rustc_data_structures" }
1010
rustc_hir = { path = "../rustc_hir", optional = true }
11-
rustc_macros = { path = "../rustc_macros", optional = true }
1211
rustc_middle = { path = "../rustc_middle", optional = true }
1312
rustc_span = { path = "../rustc_span", optional = true }
1413
tracing = "0.1"
@@ -18,7 +17,6 @@ tracing = "0.1"
1817
rustc = [
1918
"dep:rustc_abi",
2019
"dep:rustc_hir",
21-
"dep:rustc_macros",
2220
"dep:rustc_middle",
2321
"dep:rustc_span",
2422
]

compiler/rustc_transmute/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ pub enum Reason<T> {
8181
#[cfg(feature = "rustc")]
8282
mod rustc {
8383
use rustc_hir::lang_items::LangItem;
84-
use rustc_macros::TypeVisitable;
8584
use rustc_middle::traits::ObligationCause;
8685
use rustc_middle::ty::{Const, ParamEnv, Ty, TyCtxt};
8786

8887
use super::*;
8988

9089
/// The source and destination types of a transmutation.
91-
#[derive(TypeVisitable, Debug, Clone, Copy)]
90+
#[derive(Debug, Clone, Copy)]
9291
pub struct Types<'tcx> {
9392
/// The source type.
9493
pub src: Ty<'tcx>,

0 commit comments

Comments
 (0)