@@ -18,20 +18,12 @@ struct MoveDataBuilder<'a, 'tcx, F> {
18
18
body : & ' a Body < ' tcx > ,
19
19
loc : Location ,
20
20
tcx : TyCtxt < ' tcx > ,
21
- // TODO:
22
- #[ allow( unused) ]
23
- param_env : ty:: ParamEnv < ' tcx > ,
24
21
data : MoveData < ' tcx > ,
25
22
filter : F ,
26
23
}
27
24
28
25
impl < ' a , ' tcx , F : Fn ( Ty < ' tcx > ) -> bool > MoveDataBuilder < ' a , ' tcx , F > {
29
- fn new (
30
- body : & ' a Body < ' tcx > ,
31
- tcx : TyCtxt < ' tcx > ,
32
- param_env : ty:: ParamEnv < ' tcx > ,
33
- filter : F ,
34
- ) -> Self {
26
+ fn new ( body : & ' a Body < ' tcx > , tcx : TyCtxt < ' tcx > , filter : F ) -> Self {
35
27
let mut move_paths = IndexVec :: new ( ) ;
36
28
let mut path_map = IndexVec :: new ( ) ;
37
29
let mut init_path_map = IndexVec :: new ( ) ;
@@ -61,7 +53,6 @@ impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
61
53
body,
62
54
loc : Location :: START ,
63
55
tcx,
64
- param_env,
65
56
data : MoveData {
66
57
moves : IndexVec :: new ( ) ,
67
58
loc_map : LocationMap :: new ( body) ,
@@ -310,10 +301,9 @@ impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
310
301
pub ( super ) fn gather_moves < ' tcx > (
311
302
body : & Body < ' tcx > ,
312
303
tcx : TyCtxt < ' tcx > ,
313
- param_env : ty:: ParamEnv < ' tcx > ,
314
304
filter : impl Fn ( Ty < ' tcx > ) -> bool ,
315
305
) -> MoveData < ' tcx > {
316
- let mut builder = MoveDataBuilder :: new ( body, tcx, param_env , filter) ;
306
+ let mut builder = MoveDataBuilder :: new ( body, tcx, filter) ;
317
307
318
308
builder. gather_args ( ) ;
319
309
0 commit comments