diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2023-04-17 13:45:11 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2023-04-17 13:45:11 +0200 |
| commit | 89f0aaaec60f5e67604fd2f98b1e43500c1a0578 (patch) | |
| tree | c86bff2477fc3492bbd2032c92de119e45aae892 /src | |
| parent | 4680aa2fd07876a4d2f7059defef2595e3184038 (diff) | |
| download | rust-89f0aaaec60f5e67604fd2f98b1e43500c1a0578.tar.gz rust-89f0aaaec60f5e67604fd2f98b1e43500c1a0578.zip | |
Force -Zflatten-format-args=no in Clippy.
Diffstat (limited to 'src')
| -rw-r--r-- | src/driver.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/driver.rs b/src/driver.rs index 718bc41fb99..205905d5091 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -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; } } |
