Skip to content

Commit 6b40d12

Browse files
Rollup merge of rust-lang#82736 - spastorino:mir-opt-level-perf-changes, r=oli-obk
Bump optimization from mir_opt_level 2 to 3 and 3 to 4 and make "release" be level 2 by default r? `@oli-obk`
2 parents 09c4503 + 0941fc0 commit 6b40d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
8383
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
8484
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
8585
// use for Clippy.
86-
config.opts.debugging_opts.mir_opt_level = 0;
86+
config.opts.debugging_opts.mir_opt_level = Some(0);
8787
}
8888
}
8989

0 commit comments

Comments
 (0)