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
|
@ -310,7 +310,7 @@ fn characteristic_def_id_of_mono_item<'tcx>(
|
|||
let impl_self_ty = tcx.subst_and_normalize_erasing_regions(
|
||||
instance.substs,
|
||||
ty::ParamEnv::reveal_all(),
|
||||
tcx.type_of(impl_def_id).skip_binder(),
|
||||
tcx.type_of(impl_def_id),
|
||||
);
|
||||
if let Some(def_id) = characteristic_def_id_of_type(impl_self_ty) {
|
||||
return Some(def_id);
|
||||
|
|
|
@ -29,12 +29,12 @@ pub(crate) fn dump_closure_profile<'tcx>(tcx: TyCtxt<'tcx>, closure_instance: In
|
|||
let before_feature_tys = tcx.subst_and_normalize_erasing_regions(
|
||||
closure_instance.substs,
|
||||
param_env,
|
||||
before_feature_tys,
|
||||
ty::EarlyBinder(before_feature_tys),
|
||||
);
|
||||
let after_feature_tys = tcx.subst_and_normalize_erasing_regions(
|
||||
closure_instance.substs,
|
||||
param_env,
|
||||
after_feature_tys,
|
||||
ty::EarlyBinder(after_feature_tys),
|
||||
);
|
||||
|
||||
let new_size = tcx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue