Skip to content

Commit 4fcaa96

Browse files
committed
rename a couple of trivial variables
for consistency with how they're named everywhere else
1 parent 8ec7a70 commit 4fcaa96

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_borrowck/src/constraint_generation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ impl<'cx, 'tcx> ConstraintGeneration<'cx, 'tcx> {
166166
debug!("add_regular_live_constraint(live_ty={:?}, location={:?})", live_ty, location);
167167

168168
self.infcx.tcx.for_each_free_region(&live_ty, |live_region| {
169-
let vid = live_region.as_var();
170-
self.liveness_constraints.add_location(vid, location);
169+
let live_region_vid = live_region.as_var();
170+
self.liveness_constraints.add_location(live_region_vid, location);
171171
});
172172
}
173173

compiler/rustc_borrowck/src/type_check/liveness/trace.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ pub(super) fn trace<'mir, 'tcx>(
5757
if typeck.tcx().sess.opts.unstable_opts.polonius.is_next_enabled() {
5858
let borrowck_context = &typeck.borrowck_context;
5959
let borrow_set = &borrowck_context.borrow_set;
60-
let constraint_set = &borrowck_context.constraints.outlives_constraints;
60+
let outlives_constraints = &borrowck_context.constraints.outlives_constraints;
6161

6262
let num_region_vars = typeck.infcx.num_region_vars();
63-
let graph = constraint_set.graph(num_region_vars);
63+
let graph = outlives_constraints.graph(num_region_vars);
6464
let region_graph =
65-
graph.region_graph(constraint_set, borrowck_context.universal_regions.fr_static);
65+
graph.region_graph(outlives_constraints, borrowck_context.universal_regions.fr_static);
6666

6767
// Traverse each issuing region's constraints, and record the loan as flowing into the
6868
// outlived region.

0 commit comments

Comments
 (0)