Skip to content

Commit 7446321

Browse files
committed
Rename NllVisitor as RegionRenumberer.
It's a more descriptive name.
1 parent 7e8905c commit 7446321

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/rustc_borrowck/src/renumber.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ pub fn renumber_mir<'tcx>(
2020
) {
2121
debug!(?body.arg_count);
2222

23-
let mut visitor = NllVisitor { infcx };
23+
let mut renumberer = RegionRenumberer { infcx };
2424

2525
for body in promoted.iter_mut() {
26-
visitor.visit_body(body);
26+
renumberer.visit_body(body);
2727
}
2828

29-
visitor.visit_body(body);
29+
renumberer.visit_body(body);
3030
}
3131

3232
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
@@ -64,11 +64,11 @@ impl RegionCtxt {
6464
}
6565
}
6666

67-
struct NllVisitor<'a, 'tcx> {
67+
struct RegionRenumberer<'a, 'tcx> {
6868
infcx: &'a BorrowckInferCtxt<'a, 'tcx>,
6969
}
7070

71-
impl<'a, 'tcx> NllVisitor<'a, 'tcx> {
71+
impl<'a, 'tcx> RegionRenumberer<'a, 'tcx> {
7272
/// Replaces all regions appearing in `value` with fresh inference
7373
/// variables.
7474
fn renumber_regions<T, F>(&mut self, value: T, region_ctxt_fn: F) -> T
@@ -83,7 +83,7 @@ impl<'a, 'tcx> NllVisitor<'a, 'tcx> {
8383
}
8484
}
8585

86-
impl<'a, 'tcx> MutVisitor<'tcx> for NllVisitor<'a, 'tcx> {
86+
impl<'a, 'tcx> MutVisitor<'tcx> for RegionRenumberer<'a, 'tcx> {
8787
fn tcx(&self) -> TyCtxt<'tcx> {
8888
self.infcx.tcx
8989
}

0 commit comments

Comments
 (0)