Add bound_type_of
This commit is contained in:
parent
319575ae8c
commit
c92248ab9f
30 changed files with 90 additions and 83 deletions
|
@ -135,7 +135,7 @@ fn with_fresh_ty_vars<'cx, 'tcx>(
|
|||
|
||||
let header = ty::ImplHeader {
|
||||
impl_def_id,
|
||||
self_ty: EarlyBinder(tcx.type_of(impl_def_id)).subst(tcx, impl_substs),
|
||||
self_ty: tcx.bound_type_of(impl_def_id).subst(tcx, impl_substs),
|
||||
trait_ref: EarlyBinder(tcx.impl_trait_ref(impl_def_id)).subst(tcx, impl_substs),
|
||||
predicates: tcx.predicates_of(impl_def_id).instantiate(tcx, impl_substs).predicates,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue