mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Force -Zflatten-format-args=no in Clippy.
This commit is contained in:
@@ -160,6 +160,9 @@ fn config(&mut self, config: &mut interface::Config) {
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user