@@ -14,17 +14,17 @@ use super::{
14
14
MoveOutIndex , MovePath , MovePathIndex , MovePathLookup ,
15
15
} ;
16
16
17
- struct MoveDataBuilder < ' a , ' tcx , F > {
18
- body : & ' a Body < ' tcx > ,
17
+ struct MoveDataBuilder < ' mir , ' tcx , F > {
18
+ body : & ' mir Body < ' tcx > ,
19
19
tcx : TyCtxt < ' tcx > ,
20
20
param_env : ty:: ParamEnv < ' tcx > ,
21
21
data : MoveData < ' tcx > ,
22
22
filter : F ,
23
23
}
24
24
25
- impl < ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' a , ' tcx , F > {
25
+ impl < ' mir , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' mir , ' tcx , F > {
26
26
fn new (
27
- body : & ' a Body < ' tcx > ,
27
+ body : & ' mir Body < ' tcx > ,
28
28
tcx : TyCtxt < ' tcx > ,
29
29
param_env : ty:: ParamEnv < ' tcx > ,
30
30
filter : F ,
@@ -107,7 +107,7 @@ enum MovePathResult {
107
107
Error ,
108
108
}
109
109
110
- impl < ' b , ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > Gatherer < ' b , ' a , ' tcx , F > {
110
+ impl < ' a , ' mir , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > Gatherer < ' a , ' mir , ' tcx , F > {
111
111
/// This creates a MovePath for a given place, returning an `MovePathError`
112
112
/// if that place can't be moved from.
113
113
///
@@ -287,7 +287,7 @@ impl<'b, 'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> Gatherer<'b, 'a, 'tcx, F> {
287
287
}
288
288
}
289
289
290
- impl < ' a , ' tcx , F > MoveDataBuilder < ' a , ' tcx , F > {
290
+ impl < ' mir , ' tcx , F > MoveDataBuilder < ' mir , ' tcx , F > {
291
291
fn finalize ( self ) -> MoveData < ' tcx > {
292
292
debug ! ( "{}" , {
293
293
debug!( "moves for {:?}:" , self . body. span) ;
@@ -328,7 +328,7 @@ pub(super) fn gather_moves<'tcx>(
328
328
builder. finalize ( )
329
329
}
330
330
331
- impl < ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' a , ' tcx , F > {
331
+ impl < ' mir , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' mir , ' tcx , F > {
332
332
fn gather_args ( & mut self ) {
333
333
for arg in self . body . args_iter ( ) {
334
334
if let Some ( path) = self . data . rev_lookup . find_local ( arg) {
@@ -356,12 +356,12 @@ impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
356
356
}
357
357
}
358
358
359
- struct Gatherer < ' b , ' a , ' tcx , F > {
360
- builder : & ' b mut MoveDataBuilder < ' a , ' tcx , F > ,
359
+ struct Gatherer < ' a , ' mir , ' tcx , F > {
360
+ builder : & ' a mut MoveDataBuilder < ' mir , ' tcx , F > ,
361
361
loc : Location ,
362
362
}
363
363
364
- impl < ' b , ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > Gatherer < ' b , ' a , ' tcx , F > {
364
+ impl < ' a , ' mir , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > Gatherer < ' a , ' mir , ' tcx , F > {
365
365
fn gather_statement ( & mut self , stmt : & Statement < ' tcx > ) {
366
366
match & stmt. kind {
367
367
StatementKind :: Assign ( box ( place, Rvalue :: CopyForDeref ( reffed) ) ) => {
0 commit comments