diff options
| author | bors <bors@rust-lang.org> | 2022-10-17 11:51:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-17 11:51:32 +0000 |
| commit | 502e87c3790059e878868125985726c065b72f85 (patch) | |
| tree | 0772e199d01471f8163c8582ba5db47eac0b327d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 4eaf543b69f433760d30e90ed17423f7e223fdca (diff) | |
| parent | 136c2cdb910938103a762cdde177b1633bdbf99a (diff) | |
| download | rust-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
