diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-02-20 12:46:39 -0700 |
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-05-06 22:32:39 -0600 |
| commit | e5d10cdbc36d80dcfa1c25ce6bd64b213674fe74 (patch) | |
| tree | 495c2ff9d24a0c4f85af2a618f125752967ad119 /compiler/rustc_monomorphize/src/util.rs | |
| parent | 34bee196cb85b5e7f45118a791360161c46cf000 (diff) | |
| download | rust-e5d10cdbc36d80dcfa1c25ce6bd64b213674fe74.tar.gz rust-e5d10cdbc36d80dcfa1c25ce6bd64b213674fe74.zip | |
make (try_)subst_and_normalize_erasing_regions take EarlyBinder
Diffstat (limited to 'compiler/rustc_monomorphize/src/util.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/util.rs b/compiler/rustc_monomorphize/src/util.rs index 33e1f6ce342..d12bfc6f6bb 100644 --- a/compiler/rustc_monomorphize/src/util.rs +++ b/compiler/rustc_monomorphize/src/util.rs @@ -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 |
