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 7984e60 commit 0941fc0
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 0941fc0

Please sign in to comment.