Parametrize gather_moves by filter.
This commit is contained in:
parent
4bedd7de6e
commit
252c64722f
6 changed files with 89 additions and 65 deletions
|
@ -54,7 +54,7 @@ impl<'tcx> MirPass<'tcx> for ElaborateDrops {
|
|||
|
||||
let def_id = body.source.def_id();
|
||||
let param_env = tcx.param_env_reveal_all_normalized(def_id);
|
||||
let move_data = MoveData::gather_moves(body, tcx, param_env);
|
||||
let move_data = MoveData::gather_moves(&body, tcx, param_env, |_| true);
|
||||
let elaborate_patch = {
|
||||
let env = MoveDataParamEnv { move_data, param_env };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue