1
Fork 0

consistent name for UniversalRegions

This commit is contained in:
lcnr 2025-04-11 10:41:10 +02:00
parent 18a029cfe8
commit 923f44c631

View file

@ -330,7 +330,7 @@ fn do_mir_borrowck<'tcx>(
// will have a lifetime tied to the inference context. // will have a lifetime tied to the inference context.
let mut body_owned = input_body.clone(); let mut body_owned = input_body.clone();
let mut promoted = input_promoted.to_owned(); let mut promoted = input_promoted.to_owned();
let free_regions = nll::replace_regions_in_mir(&infcx, &mut body_owned, &mut promoted); let universal_regions = nll::replace_regions_in_mir(&infcx, &mut body_owned, &mut promoted);
let body = &body_owned; // no further changes let body = &body_owned; // no further changes
let location_table = PoloniusLocationTable::new(body); let location_table = PoloniusLocationTable::new(body);
@ -355,7 +355,7 @@ fn do_mir_borrowck<'tcx>(
} = nll::compute_regions( } = nll::compute_regions(
root_cx, root_cx,
&infcx, &infcx,
free_regions, universal_regions,
body, body,
&promoted, &promoted,
&location_table, &location_table,