diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-04-12 07:44:37 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-04-12 07:44:37 +1000 |
| commit | 74463214a619a7e9d2d0dc5c6e299c0d0f6f14a5 (patch) | |
| tree | 951a7bb01eb9e8161f763bacd6053aedcb55b318 | |
| parent | 7e8905cd18901fb0a2fdc68bfbf3133291ca2183 (diff) | |
| download | rust-74463214a619a7e9d2d0dc5c6e299c0d0f6f14a5.tar.gz rust-74463214a619a7e9d2d0dc5c6e299c0d0f6f14a5.zip | |
Rename `NllVisitor` as `RegionRenumberer`.
It's a more descriptive name.
| -rw-r--r-- | compiler/rustc_borrowck/src/renumber.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_borrowck/src/renumber.rs b/compiler/rustc_borrowck/src/renumber.rs index 07962267594..2c1d74ef9ca 100644 --- a/compiler/rustc_borrowck/src/renumber.rs +++ b/compiler/rustc_borrowck/src/renumber.rs @@ -20,13 +20,13 @@ pub fn renumber_mir<'tcx>( ) { debug!(?body.arg_count); - let mut visitor = NllVisitor { infcx }; + let mut renumberer = RegionRenumberer { infcx }; for body in promoted.iter_mut() { - visitor.visit_body(body); + renumberer.visit_body(body); } - visitor.visit_body(body); + renumberer.visit_body(body); } #[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)] @@ -64,11 +64,11 @@ impl RegionCtxt { } } -struct NllVisitor<'a, 'tcx> { +struct RegionRenumberer<'a, 'tcx> { infcx: &'a BorrowckInferCtxt<'a, 'tcx>, } -impl<'a, 'tcx> NllVisitor<'a, 'tcx> { +impl<'a, 'tcx> RegionRenumberer<'a, 'tcx> { /// Replaces all regions appearing in `value` with fresh inference /// variables. fn renumber_regions<T, F>(&mut self, value: T, region_ctxt_fn: F) -> T @@ -83,7 +83,7 @@ impl<'a, 'tcx> NllVisitor<'a, 'tcx> { } } -impl<'a, 'tcx> MutVisitor<'tcx> for NllVisitor<'a, 'tcx> { +impl<'a, 'tcx> MutVisitor<'tcx> for RegionRenumberer<'a, 'tcx> { fn tcx(&self) -> TyCtxt<'tcx> { self.infcx.tcx } |
