]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/transform/const_goto.rs
Rollup merge of #82789 - csmoe:issue-82772, r=estebank
[rust.git] / compiler / rustc_mir / src / transform / const_goto.rs
index 3eb2e757644c47f8130b0b0037010f68692f7679..b5c8b4bebc360496349001822c0dc24c1bece0f2 100644 (file)
@@ -28,7 +28,7 @@
 
 impl<'tcx> MirPass<'tcx> for ConstGoto {
     fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
-        if tcx.sess.opts.debugging_opts.mir_opt_level < 3 {
+        if tcx.sess.mir_opt_level() < 4 {
             return;
         }
         trace!("Running ConstGoto on {:?}", body.source);