fix various subst_identity vs skip_binder
This commit is contained in:
parent
f29a334c90
commit
6e969ea85e
13 changed files with 29 additions and 25 deletions
|
@ -22,9 +22,9 @@ fn assumed_wf_types(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::List<Ty<'_>> {
|
|||
tcx.intern_type_list(&assumed_wf_types)
|
||||
}
|
||||
DefKind::Impl => {
|
||||
match tcx.impl_trait_ref(def_id).map(ty::EarlyBinder::subst_identity) {
|
||||
match tcx.impl_trait_ref(def_id) {
|
||||
Some(trait_ref) => {
|
||||
let types: Vec<_> = trait_ref.substs.types().collect();
|
||||
let types: Vec<_> = trait_ref.skip_binder().substs.types().collect();
|
||||
tcx.intern_type_list(&types)
|
||||
}
|
||||
// Only the impl self type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue