mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
Fix remove_unneeded_drops pass.
This commit is contained in:
parent
2fa9b11804
commit
a7ccf22b48
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user