Skip to content

Commit 63d8758

Browse files
committed
Force -Zflatten-format-args=no in Clippy.
1 parent a77d39b commit 63d8758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/clippy/src/driver.rs

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
160160
// MIR passes can be enabled / disabled separately, we should figure out, what passes to
161161
// use for Clippy.
162162
config.opts.unstable_opts.mir_opt_level = Some(0);
163+
164+
// Disable flattening and inlining of format_args!(), so the HIR matches with the AST.
165+
config.opts.unstable_opts.flatten_format_args = false;
163166
}
164167
}
165168

0 commit comments

Comments
 (0)