mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Add comment for mir_opt_level=0
This commit is contained in:
parent
e3a74ed2b5
commit
7bae5bd828
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,10 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
|
|||
clippy_lints::register_renamed(&mut lint_store);
|
||||
}));
|
||||
|
||||
// FIXME: #4825; This is required, because Clippy lints that are based on MIR have to be
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue