File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/rustc_mir/src/transform Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl<'tcx> MirPass<'tcx> for DestinationPropagation {
129
129
fn run_pass ( & self , tcx : TyCtxt < ' tcx > , body : & mut Body < ' tcx > ) {
130
130
// Only run at mir-opt-level=2 or higher for now (we don't fix up debuginfo and remove
131
131
// storage statements at the moment).
132
- if tcx. sess . mir_opt_level ( ) <= 1 {
132
+ if tcx. sess . mir_opt_level ( ) < 2 {
133
133
return ;
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub struct MatchBranchSimplification;
40
40
41
41
impl < ' tcx > MirPass < ' tcx > for MatchBranchSimplification {
42
42
fn run_pass ( & self , tcx : TyCtxt < ' tcx > , body : & mut Body < ' tcx > ) {
43
- if tcx. sess . mir_opt_level ( ) <= 1 {
43
+ if tcx. sess . mir_opt_level ( ) < 2 {
44
44
return ;
45
45
}
46
46
You can’t perform that action at this time.
0 commit comments