diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2021-03-03 23:33:18 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2021-03-05 17:13:57 -0300 |
| commit | 0941fc0bb5d655cdd0816f862af8cfe70556dad6 (patch) | |
| tree | 47dd2a8e9392ea981839d9cba054e31d7e268598 | |
| parent | 7984e60d9e1ee36b943cc72e4e7b33d05e6ee83d (diff) | |
| download | rust-0941fc0bb5d655cdd0816f862af8cfe70556dad6.tar.gz rust-0941fc0bb5d655cdd0816f862af8cfe70556dad6.zip | |
Make clippy set mir_opt_level using Option
| -rw-r--r-- | src/driver.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver.rs b/src/driver.rs index d5143e1438e..94af21568ee 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -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); } } |
