@@ -20,13 +20,13 @@ pub fn renumber_mir<'tcx>(
20
20
) {
21
21
debug ! ( ?body. arg_count) ;
22
22
23
- let mut visitor = NllVisitor { infcx } ;
23
+ let mut renumberer = RegionRenumberer { infcx } ;
24
24
25
25
for body in promoted. iter_mut ( ) {
26
- visitor . visit_body ( body) ;
26
+ renumberer . visit_body ( body) ;
27
27
}
28
28
29
- visitor . visit_body ( body) ;
29
+ renumberer . visit_body ( body) ;
30
30
}
31
31
32
32
#[ derive( Copy , Clone , Debug , Eq , PartialEq , Hash ) ]
@@ -64,11 +64,11 @@ impl RegionCtxt {
64
64
}
65
65
}
66
66
67
- struct NllVisitor < ' a , ' tcx > {
67
+ struct RegionRenumberer < ' a , ' tcx > {
68
68
infcx : & ' a BorrowckInferCtxt < ' a , ' tcx > ,
69
69
}
70
70
71
- impl < ' a , ' tcx > NllVisitor < ' a , ' tcx > {
71
+ impl < ' a , ' tcx > RegionRenumberer < ' a , ' tcx > {
72
72
/// Replaces all regions appearing in `value` with fresh inference
73
73
/// variables.
74
74
fn renumber_regions < T , F > ( & mut self , value : T , region_ctxt_fn : F ) -> T
@@ -83,7 +83,7 @@ impl<'a, 'tcx> NllVisitor<'a, 'tcx> {
83
83
}
84
84
}
85
85
86
- impl < ' a , ' tcx > MutVisitor < ' tcx > for NllVisitor < ' a , ' tcx > {
86
+ impl < ' a , ' tcx > MutVisitor < ' tcx > for RegionRenumberer < ' a , ' tcx > {
87
87
fn tcx ( & self ) -> TyCtxt < ' tcx > {
88
88
self . infcx . tcx
89
89
}
0 commit comments