Skip to content

Commit

Permalink
Rollup merge of rust-lang#82736 - spastorino:mir-opt-level-perf-chang…
Browse files Browse the repository at this point in the history
…es, 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`
  • Loading branch information
GuillaumeGomez authored Mar 5, 2021
2 parents 09c4503 + 0941fc0 commit 6b40d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
// use for Clippy.
config.opts.debugging_opts.mir_opt_level = 0;
config.opts.debugging_opts.mir_opt_level = Some(0);
}
}

Expand Down

0 comments on commit 6b40d12

Please sign in to comment.