about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-11-06 15:56:29 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-11-06 15:56:29 +0100
commita3776d99ccdd60d3f880005e4fe4e9478768ea41 (patch)
tree2ae44228da373335cb61e3ad4955cb27567518c5 /compiler/rustc_mir_transform/src
parentc4ff03f689c03d73d3a8af49611b1f2b54d6a300 (diff)
downloadrust-a3776d99ccdd60d3f880005e4fe4e9478768ea41.tar.gz
rust-a3776d99ccdd60d3f880005e4fe4e9478768ea41.zip
Run reveal_all on MIR more often.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/reveal_all.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/reveal_all.rs b/compiler/rustc_mir_transform/src/reveal_all.rs
index 7b4eb4912cb..6c423a2bb57 100644
--- a/compiler/rustc_mir_transform/src/reveal_all.rs
+++ b/compiler/rustc_mir_transform/src/reveal_all.rs
@@ -11,7 +11,7 @@ impl<'tcx> MirPass<'tcx> for RevealAll {
     fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
         // This pass must run before inlining, since we insert callee bodies in RevealAll mode.
         // Do not apply this transformation to generators.
-        if (tcx.sess.mir_opt_level() >= 3 || !super::inline::is_enabled(tcx))
+        if (tcx.sess.mir_opt_level() >= 3 || super::inline::is_enabled(tcx))
             && body.generator.is_none()
         {
             let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());