Skip to content

Commit 0941fc0

Browse files
committed
Make clippy set mir_opt_level using Option
1 parent 7984e60 commit 0941fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
8383
// run on the unoptimized MIR. On the other hand this results in some false negatives. If
8484
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
8585
// use for Clippy.
86-
config.opts.debugging_opts.mir_opt_level = 0;
86+
config.opts.debugging_opts.mir_opt_level = Some(0);
8787
}
8888
}
8989

0 commit comments

Comments
 (0)