]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #99480 - miam-miam100:arg-format, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 20 Jul 2022 16:58:17 +0000 (18:58 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Jul 2022 16:58:17 +0000 (18:58 +0200)
commit9e197b75f0e5ad17dc1bb1431853bd4df7cff408
tree68b799e1e2bba41291b34e52e832e7900571c9ce
parent82d9ae9ca1a21ba1fa5648e03395ade87ca762f0
parentf8dfc4bf350bad5140a7d1e7a9030b91dbdc4ce4
Rollup merge of #99480 - miam-miam100:arg-format, r=oli-obk

Diagnostic width span is not added when '0$' is used as width in format strings

When the following code is run rustc does not add diagnostic spans for the width argument. Such spans are necessary for a clippy lint that I am currently writing.

```rust
println!("Hello {1:0$}!", 5, "x");
//                 ^^
// Should have a span here
```