rename ancient regioncx

This commit is contained in:
Rémy Rakic 2023-06-23 23:42:48 +00:00
parent 4f7a27b225
commit 43cdf39d89

View File

@ -242,11 +242,11 @@ impl<'a, 'tcx> Borrows<'a, 'tcx> {
pub fn new( pub fn new(
tcx: TyCtxt<'tcx>, tcx: TyCtxt<'tcx>,
body: &'a Body<'tcx>, body: &'a Body<'tcx>,
nonlexical_regioncx: &'a RegionInferenceContext<'tcx>, regioncx: &'a RegionInferenceContext<'tcx>,
borrow_set: &'a BorrowSet<'tcx>, borrow_set: &'a BorrowSet<'tcx>,
) -> Self { ) -> Self {
let borrows_out_of_scope_at_location = let borrows_out_of_scope_at_location =
calculate_borrows_out_of_scope_at_location(body, nonlexical_regioncx, borrow_set); calculate_borrows_out_of_scope_at_location(body, regioncx, borrow_set);
Borrows { tcx, body, borrow_set, borrows_out_of_scope_at_location } Borrows { tcx, body, borrow_set, borrows_out_of_scope_at_location }
} }