From c5bd169a7bb968f3b5dc7eb9bafcccc40d0345bb Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Tue, 4 Apr 2023 17:21:26 +0000 Subject: [PATCH] Fully disable ConstProp. --- compiler/rustc_mir_transform/src/const_prop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_mir_transform/src/const_prop.rs b/compiler/rustc_mir_transform/src/const_prop.rs index ac55948e61b57..895c20085fe39 100644 --- a/compiler/rustc_mir_transform/src/const_prop.rs +++ b/compiler/rustc_mir_transform/src/const_prop.rs @@ -54,7 +54,7 @@ pub struct ConstProp; impl<'tcx> MirPass<'tcx> for ConstProp { fn is_enabled(&self, sess: &rustc_session::Session) -> bool { - sess.mir_opt_level() >= 1 + sess.mir_opt_level() >= 4 } #[instrument(skip(self, tcx), level = "debug")]