diff options
| author | Rich Kadel <richkadel@google.com> | 2020-12-14 13:12:15 -0800 |
|---|---|---|
| committer | Rich Kadel <richkadel@google.com> | 2020-12-14 17:27:27 -0800 |
| commit | ae288df51fed67c60e4c5d5f1b5aff0bc974e906 (patch) | |
| tree | cb7ecb60184bf36e17f2b9ffacbdf54b03fc8e7b | |
| parent | 3043a7b5d9c990c63335cb31869fff58f8ca5617 (diff) | |
| download | rust-ae288df51fed67c60e4c5d5f1b5aff0bc974e906.tar.gz rust-ae288df51fed67c60e4c5d5f1b5aff0bc974e906.zip | |
Convenience funcs for `some_option.unwrap_or(...)`
This ensures consistent handling of default values for options that are None if not specified on the command line.
| -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 9e5ae21f702..87dd19c5d4d 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -85,7 +85,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 = Some(0); + config.opts.debugging_opts.mir_opt_level = 0; } } |
