Fix remove_unneeded_drops pass.

This commit is contained in:
Camille GILLOT 2021-09-26 17:02:20 +02:00
parent 2fa9b11804
commit a7ccf22b48

View File

@ -13,7 +13,7 @@ impl<'tcx> MirPass<'tcx> for RemoveUnneededDrops {
trace!("Running RemoveUnneededDrops on {:?}", body.source);
let did = body.source.def_id();
let param_env = tcx.param_env(did);
let param_env = tcx.param_env_reveal_all_normalized(did);
let mut should_simplify = false;
let (basic_blocks, local_decls) = body.basic_blocks_and_local_decls_mut();