Skip to content

Commit 159293c

Browse files
committed
subst -> instantiate
1 parent 1351de3 commit 159293c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/filter_profile.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
100100
stack = &stack[..index + ENCODE_METADATA.len()];
101101
}
102102

103-
const SUBST_AND_NORMALIZE_ERASING_REGIONS: &str = "rustc_middle::ty::normalize_erasing_regions::<impl rustc_middle::ty::context::TyCtxt>::subst_and_normalize_erasing_regions";
104-
if let Some(index) = stack.find(SUBST_AND_NORMALIZE_ERASING_REGIONS) {
105-
stack = &stack[..index + SUBST_AND_NORMALIZE_ERASING_REGIONS.len()];
103+
const INSTANTIATE_AND_NORMALIZE_ERASING_REGIONS: &str = "rustc_middle::ty::normalize_erasing_regions::<impl rustc_middle::ty::context::TyCtxt>::instantiate_and_normalize_erasing_regions";
104+
if let Some(index) = stack.find(INSTANTIATE_AND_NORMALIZE_ERASING_REGIONS) {
105+
stack = &stack[..index + INSTANTIATE_AND_NORMALIZE_ERASING_REGIONS.len()];
106106
}
107107

108108
const NORMALIZE_ERASING_LATE_BOUND_REGIONS: &str = "rustc_middle::ty::normalize_erasing_regions::<impl rustc_middle::ty::context::TyCtxt>::normalize_erasing_late_bound_regions";

src/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
359359
where
360360
T: TypeFoldable<TyCtxt<'tcx>> + Copy,
361361
{
362-
self.instance.subst_mir_and_normalize_erasing_regions(
362+
self.instance.instantiate_mir_and_normalize_erasing_regions(
363363
self.tcx,
364364
ty::ParamEnv::reveal_all(),
365365
ty::EarlyBinder::bind(value),

0 commit comments

Comments
 (0)