change usages of type_of to bound_type_of
This commit is contained in:
@@ -82,8 +82,8 @@ pub fn overlapping_impls(
|
||||
(Some(a), Some(b)) => iter::zip(a.skip_binder().substs, b.skip_binder().substs)
|
||||
.all(|(arg1, arg2)| drcx.generic_args_may_unify(arg1, arg2)),
|
||||
(None, None) => {
|
||||
let self_ty1 = tcx.type_of(impl1_def_id);
|
||||
let self_ty2 = tcx.type_of(impl2_def_id);
|
||||
let self_ty1 = tcx.bound_type_of(impl1_def_id).skip_binder();
|
||||
let self_ty2 = tcx.bound_type_of(impl2_def_id).skip_binder();
|
||||
drcx.types_may_unify(self_ty1, self_ty2)
|
||||
}
|
||||
_ => bug!("unexpected impls: {impl1_def_id:?} {impl2_def_id:?}"),
|
||||
|
||||
Reference in New Issue
Block a user