Skip to content

Commit dcc51f1

Browse files
committed
change usage of bound_impl_subject to impl_subject
1 parent e4dae0d commit dcc51f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ fn negative_impl(tcx: TyCtxt<'_>, impl1_def_id: DefId, impl2_def_id: DefId) -> b
306306
&infcx,
307307
ObligationCause::dummy(),
308308
impl_env,
309-
tcx.impl_subject(impl1_def_id),
309+
tcx.bound_impl_subject(impl1_def_id).subst_identity(),
310310
) {
311311
Ok(s) => s,
312312
Err(err) => {

0 commit comments

Comments
 (0)