Skip to content

Commit

Permalink
Make clippy set mir_opt_level using Option
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Mar 5, 2021
1 parent 421fd8e commit 03c1f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/clippy/src/driver.rs
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 03c1f17

Please sign in to comment.