1
Fork 0

Force -Zflatten-format-args=no in Clippy.

This commit is contained in:
Mara Bos 2023-04-17 13:45:11 +02:00
parent a77d39b5e2
commit 63d8758d35

View file

@ -160,6 +160,9 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
// MIR passes can be enabled / disabled separately, we should figure out, what passes to // MIR passes can be enabled / disabled separately, we should figure out, what passes to
// use for Clippy. // use for Clippy.
config.opts.unstable_opts.mir_opt_level = Some(0); 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;
} }
} }