Parametrize gather_moves by filter.
This commit is contained in:
parent
4bedd7de6e
commit
252c64722f
6 changed files with 89 additions and 65 deletions
|
@ -219,10 +219,10 @@ fn do_mir_borrowck<'tcx>(
|
|||
let location_table_owned = LocationTable::new(body);
|
||||
let location_table = &location_table_owned;
|
||||
|
||||
let move_data = MoveData::gather_moves(&body, tcx, param_env);
|
||||
let move_data = MoveData::gather_moves(&body, tcx, param_env, |_| true);
|
||||
let promoted_move_data = promoted
|
||||
.iter_enumerated()
|
||||
.map(|(idx, body)| (idx, MoveData::gather_moves(&body, tcx, param_env)));
|
||||
.map(|(idx, body)| (idx, MoveData::gather_moves(&body, tcx, param_env, |_| true)));
|
||||
|
||||
let mdpe = MoveDataParamEnv { move_data, param_env };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue