collect region contexts during mir renumbering

This commit is contained in:
b-naber 2022-11-08 16:27:01 +01:00 committed by b-naber
parent cb35a7b481
commit 2f79f73821
9 changed files with 364 additions and 42 deletions

View file

@ -1111,11 +1111,13 @@ impl<'tcx> InferCtxt<'tcx> {
}
/// Just a convenient wrapper of `next_region_var` for using during NLL.
#[instrument(skip(self), level = "debug")]
pub fn next_nll_region_var(&self, origin: NllRegionVariableOrigin) -> ty::Region<'tcx> {
self.next_region_var(RegionVariableOrigin::Nll(origin))
}
/// Just a convenient wrapper of `next_region_var` for using during NLL.
#[instrument(skip(self), level = "debug")]
pub fn next_nll_region_var_in_universe(
&self,
origin: NllRegionVariableOrigin,