@@ -20,10 +20,7 @@ struct MoveDataBuilder<'a, 'tcx, F> {
20
20
filter : F ,
21
21
}
22
22
23
- impl < ' a , ' tcx , F > MoveDataBuilder < ' a , ' tcx , F >
24
- where
25
- F : Fn ( Ty < ' tcx > ) -> bool ,
26
- {
23
+ impl < ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' a , ' tcx , F > {
27
24
fn new (
28
25
body : & ' a Body < ' tcx > ,
29
26
tcx : TyCtxt < ' tcx > ,
@@ -108,10 +105,7 @@ enum MovePathResult {
108
105
Error ,
109
106
}
110
107
111
- impl < ' b , ' a , ' tcx , F > Gatherer < ' b , ' a , ' tcx , F >
112
- where
113
- F : Fn ( Ty < ' tcx > ) -> bool ,
114
- {
108
+ impl < ' b , ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > Gatherer < ' b , ' a , ' tcx , F > {
115
109
/// This creates a MovePath for a given place, returning an `MovePathError`
116
110
/// if that place can't be moved from.
117
111
///
@@ -323,10 +317,7 @@ pub(super) fn gather_moves<'tcx>(
323
317
builder. finalize ( )
324
318
}
325
319
326
- impl < ' a , ' tcx , F > MoveDataBuilder < ' a , ' tcx , F >
327
- where
328
- F : Fn ( Ty < ' tcx > ) -> bool ,
329
- {
320
+ impl < ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' a , ' tcx , F > {
330
321
fn gather_args ( & mut self ) {
331
322
for arg in self . body . args_iter ( ) {
332
323
if let Some ( path) = self . data . rev_lookup . find_local ( arg) {
@@ -359,10 +350,7 @@ struct Gatherer<'b, 'a, 'tcx, F> {
359
350
loc : Location ,
360
351
}
361
352
362
- impl < ' b , ' a , ' tcx , F > Gatherer < ' b , ' a , ' tcx , F >
363
- where
364
- F : Fn ( Ty < ' tcx > ) -> bool ,
365
- {
353
+ impl < ' b , ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > Gatherer < ' b , ' a , ' tcx , F > {
366
354
fn gather_statement ( & mut self , stmt : & Statement < ' tcx > ) {
367
355
match & stmt. kind {
368
356
StatementKind :: Assign ( box ( place, Rvalue :: CopyForDeref ( reffed) ) ) => {
0 commit comments