Skip to content

Commit 3e3e7a0

Browse files
committed
iterate over regions and not "rows" in liveness values
1 parent 4e5fe71 commit 3e3e7a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/rustc_borrowck/src/region_infer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
359359
let mut scc_values =
360360
RegionValues::new(elements, universal_regions.len(), &placeholder_indices);
361361

362-
for region in liveness_constraints.rows() {
362+
for region in liveness_constraints.regions() {
363363
let scc = constraint_sccs.scc(region);
364364
scc_values.merge_liveness(scc, region, &liveness_constraints);
365365
}

compiler/rustc_borrowck/src/region_infer/values.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<N: Idx> LivenessValues<N> {
132132
}
133133

134134
/// Iterate through each region that has a value in this set.
135-
pub(crate) fn rows(&self) -> impl Iterator<Item = N> {
135+
pub(crate) fn regions(&self) -> impl Iterator<Item = N> {
136136
self.points.rows()
137137
}
138138

compiler/rustc_borrowck/src/type_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ impl<'a, 'b, 'tcx> TypeVerifier<'a, 'b, 'tcx> {
592592
}
593593
self.cx.borrowck_context.constraints.outlives_constraints.push(constraint)
594594
}
595-
for region in liveness_constraints.rows() {
595+
for region in liveness_constraints.regions() {
596596
// If the region is live at at least one location in the promoted MIR,
597597
// then add a liveness constraint to the main MIR for this region
598598
// at the location provided as an argument to this method

0 commit comments

Comments
 (0)