about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-02-28 16:34:41 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-02-28 16:34:41 +1100
commit5f58985f5df2e7fbbef6c1acf54ece9df90ccbf3 (patch)
tree49a2bbce20c1e540c44bb58bbfc3ec67b5c6eb34 /compiler/rustc_trait_selection/src/traits
parent00f245915b0c7839d42c26f9628220c4f1b93bf6 (diff)
downloadrust-5f58985f5df2e7fbbef6c1acf54ece9df90ccbf3.tar.gz
rust-5f58985f5df2e7fbbef6c1acf54ece9df90ccbf3.zip
Remove `rustc_transmute`'s dependence on `rustc_infer`.
`TransmuteTypeEnv` only needs a `TyCtxt`, not an `InferCtxt`.
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/confirmation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/confirmation.rs b/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
index 32cbb97e314..53c61c15a21 100644
--- a/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
@@ -424,7 +424,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
         let src = predicate.trait_ref.args.type_at(1);
 
         debug!(?src, ?dst);
-        let mut transmute_env = rustc_transmute::TransmuteTypeEnv::new(self.infcx);
+        let mut transmute_env = rustc_transmute::TransmuteTypeEnv::new(self.infcx.tcx);
         let maybe_transmutable = transmute_env.is_transmutable(
             obligation.cause.clone(),
             rustc_transmute::Types { dst, src },