@@ -18,20 +18,12 @@ struct MoveDataBuilder<'a, 'tcx, F> {
1818 body : & ' a Body < ' tcx > ,
1919 loc : Location ,
2020 tcx : TyCtxt < ' tcx > ,
21- // TODO:
22- #[ allow( unused) ]
23- param_env : ty:: ParamEnv < ' tcx > ,
2421 data : MoveData < ' tcx > ,
2522 filter : F ,
2623}
2724
2825impl < ' 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 {
3527 let mut move_paths = IndexVec :: new ( ) ;
3628 let mut path_map = IndexVec :: new ( ) ;
3729 let mut init_path_map = IndexVec :: new ( ) ;
@@ -61,7 +53,6 @@ impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
6153 body,
6254 loc : Location :: START ,
6355 tcx,
64- param_env,
6556 data : MoveData {
6657 moves : IndexVec :: new ( ) ,
6758 loc_map : LocationMap :: new ( body) ,
@@ -310,10 +301,9 @@ impl<'a, 'tcx, F: Fn(Ty<'tcx>) -> bool> MoveDataBuilder<'a, 'tcx, F> {
310301pub ( super ) fn gather_moves < ' tcx > (
311302 body : & Body < ' tcx > ,
312303 tcx : TyCtxt < ' tcx > ,
313- param_env : ty:: ParamEnv < ' tcx > ,
314304 filter : impl Fn ( Ty < ' tcx > ) -> bool ,
315305) -> MoveData < ' tcx > {
316- let mut builder = MoveDataBuilder :: new ( body, tcx, param_env , filter) ;
306+ let mut builder = MoveDataBuilder :: new ( body, tcx, filter) ;
317307
318308 builder. gather_args ( ) ;
319309
0 commit comments