@@ -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