about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-17 11:51:32 +0000
committerbors <bors@rust-lang.org>2022-10-17 11:51:32 +0000
commit502e87c3790059e878868125985726c065b72f85 (patch)
tree0772e199d01471f8163c8582ba5db47eac0b327d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent4eaf543b69f433760d30e90ed17423f7e223fdca (diff)
parent136c2cdb910938103a762cdde177b1633bdbf99a (diff)
downloadrust-502e87c3790059e878868125985726c065b72f85.tar.gz
rust-502e87c3790059e878868125985726c065b72f85.zip
Auto merge of #9637 - Alexendoo:unused-format-specs, r=xFrednet
Add `unused_format_specs` lint

Currently catches two cases:

An empty precision specifier:

```rust
// the same as {}
println!("{:.}", x);
```

And using formatting specs on `format_args!()`:

```rust
// prints `x.`, not `x    .`
println("{:5}.", format_args!("x"));
```

changelog: new lint: [`unused_format_specs`]
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions