enable on opt level 1
This commit is contained in:
parent
099cb5ad8a
commit
728fb05f1f
@ -61,7 +61,7 @@ pub struct ConstProp;
|
|||||||
|
|
||||||
impl<'tcx> MirPass<'tcx> for ConstProp {
|
impl<'tcx> MirPass<'tcx> for ConstProp {
|
||||||
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
|
||||||
sess.mir_opt_level() >= 2
|
sess.mir_opt_level() >= 1
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(skip(self, tcx), level = "debug")]
|
#[instrument(skip(self, tcx), level = "debug")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user