erase_regions to erase_and_anonymize_regions

This commit is contained in:
Boxy 2025-08-21 16:50:54 +01:00 committed by lcnr
parent fefce3cecd
commit e379c77586
60 changed files with 158 additions and 132 deletions

View file

@ -1558,7 +1558,7 @@ impl<'v> RootCollector<'_, 'v> {
ty::Closure(def_id, args)
| ty::Coroutine(def_id, args)
| ty::CoroutineClosure(def_id, args) => {
Instance::new_raw(def_id, self.tcx.erase_regions(args))
Instance::new_raw(def_id, self.tcx.erase_and_anonymize_regions(args))
}
_ => unreachable!(),
};