Skip to content

Commit

Permalink
Force -Zflatten-format-args=no in Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Apr 17, 2023
1 parent a77d39b commit 63d8758
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/clippy/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 63d8758

Please sign in to comment.