make (try_)subst_and_normalize_erasing_regions take EarlyBinder
This commit is contained in:
parent
34bee196cb
commit
e5d10cdbc3
8 changed files with 14 additions and 15 deletions
|
@ -27,8 +27,7 @@ fn resolve_instance<'tcx>(
|
|||
)
|
||||
} else {
|
||||
let ty = tcx.type_of(def);
|
||||
let item_type =
|
||||
tcx.subst_and_normalize_erasing_regions(substs, param_env, ty.skip_binder());
|
||||
let item_type = tcx.subst_and_normalize_erasing_regions(substs, param_env, ty);
|
||||
|
||||
let def = match *item_type.kind() {
|
||||
ty::FnDef(def_id, ..) if tcx.is_intrinsic(def_id) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue