We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a74ed commit 7bae5bdCopy full SHA for 7bae5bd
src/driver.rs
@@ -76,6 +76,10 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
76
clippy_lints::register_renamed(&mut lint_store);
77
}));
78
79
+ // FIXME: #4825; This is required, because Clippy lints that are based on MIR have to be
80
+ // run on the unoptimized MIR. On the other hand this results in some false negatives. If
81
+ // MIR passes can be enabled / disabled separately, we should figure out, what passes to
82
+ // use for Clippy.
83
config.opts.debugging_opts.mir_opt_level = 0;
84
}
85
0 commit comments