mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Force -Zflatten-format-args=no in Clippy.
This commit is contained in:
parent
4680aa2fd0
commit
89f0aaaec6
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
|
|||
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
|
||||
// use for Clippy.
|
||||
config.opts.unstable_opts.mir_opt_level = Some(0);
|
||||
|
||||
// Disable flattening and inlining of format_args!(), so the HIR matches with the AST.
|
||||
config.opts.unstable_opts.flatten_format_args = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue