Use param_env_reveal_all_normalized in MIR opts.
This commit is contained in:
parent
7efcf67a3b
commit
4fe51365d7
7 changed files with 10 additions and 8 deletions
|
@ -37,7 +37,7 @@ impl<'tcx> MirPass<'tcx> for SimplifyComparisonIntegral {
|
|||
let opts = helper.find_optimizations();
|
||||
let mut storage_deads_to_insert = vec![];
|
||||
let mut storage_deads_to_remove: Vec<(usize, BasicBlock)> = vec![];
|
||||
let param_env = tcx.param_env(body.source.def_id());
|
||||
let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
|
||||
for opt in opts {
|
||||
trace!("SUCCESS: Applying {:?}", opt);
|
||||
// replace terminator with a switchInt that switches on the integer directly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue