1
Fork 0

Merge un_derefer into MovePathLookup

This commit is contained in:
DrMeepster 2023-06-21 00:39:13 -07:00
parent 330727467b
commit 4fbd6d5af4
8 changed files with 138 additions and 137 deletions

View file

@ -22,7 +22,7 @@ pub struct RemoveUninitDrops;
impl<'tcx> MirPass<'tcx> for RemoveUninitDrops {
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
let param_env = tcx.param_env(body.source.def_id());
let Ok((_,move_data)) = MoveData::gather_moves(body, tcx, param_env) else {
let Ok(move_data) = MoveData::gather_moves(body, tcx, param_env) else {
// We could continue if there are move errors, but there's not much point since our
// init data isn't complete.
return;