about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/coherence.rs
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-04-13 15:16:55 -0600
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-04-13 15:55:54 -0600
commitdcc51f1ef5e19dba1d791e47c0dc07f45b68fa44 (patch)
tree68909a32416b11bc2fd79616e4ec6e6abb609e7f /compiler/rustc_trait_selection/src/traits/coherence.rs
parente4dae0dac76436ada630b519f5fbf0b373bc5974 (diff)
downloadrust-dcc51f1ef5e19dba1d791e47c0dc07f45b68fa44.tar.gz
rust-dcc51f1ef5e19dba1d791e47c0dc07f45b68fa44.zip
change usage of bound_impl_subject to impl_subject
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/coherence.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/coherence.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs
index 3c918b6028d..93e1dfcfaae 100644
--- a/compiler/rustc_trait_selection/src/traits/coherence.rs
+++ b/compiler/rustc_trait_selection/src/traits/coherence.rs
@@ -306,7 +306,7 @@ fn negative_impl(tcx: TyCtxt<'_>, impl1_def_id: DefId, impl2_def_id: DefId) -> b
         &infcx,
         ObligationCause::dummy(),
         impl_env,
-        tcx.impl_subject(impl1_def_id),
+        tcx.bound_impl_subject(impl1_def_id).subst_identity(),
     ) {
         Ok(s) => s,
         Err(err) => {