collect region contexts during mir renumbering
This commit is contained in:
parent
cb35a7b481
commit
2f79f73821
9 changed files with 364 additions and 42 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue