summaryrefslogtreecommitdiff
path: root/compiler/rustc_ty_utils
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-02-20 12:46:39 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-05-06 22:32:39 -0600
commite5d10cdbc36d80dcfa1c25ce6bd64b213674fe74 (patch)
tree495c2ff9d24a0c4f85af2a618f125752967ad119 /compiler/rustc_ty_utils
parent34bee196cb85b5e7f45118a791360161c46cf000 (diff)
downloadrust-e5d10cdbc36d80dcfa1c25ce6bd64b213674fe74.tar.gz
make (try_)subst_and_normalize_erasing_regions take EarlyBinder
Diffstat (limited to 'compiler/rustc_ty_utils')
-rw-r--r--compiler/rustc_ty_utils/src/instance.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs
index b10aaad5f2a..ec577072e19 100644
--- a/compiler/rustc_ty_utils/src/instance.rs
+++ b/compiler/rustc_ty_utils/src/instance.rs
@@ -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) => {