change usage of bound_impl_subject to impl_subject

This commit is contained in:
Kyle Matsuda 2023-04-13 15:16:55 -06:00
parent e4dae0dac7
commit dcc51f1ef5

View File

@ -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) => {