about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-20 18:58:17 +0200
committerGitHub <noreply@github.com>2022-07-20 18:58:17 +0200
commit9e197b75f0e5ad17dc1bb1431853bd4df7cff408 (patch)
tree68b799e1e2bba41291b34e52e832e7900571c9ce /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent82d9ae9ca1a21ba1fa5648e03395ade87ca762f0 (diff)
parentf8dfc4bf350bad5140a7d1e7a9030b91dbdc4ce4 (diff)
downloadrust-9e197b75f0e5ad17dc1bb1431853bd4df7cff408.tar.gz
rust-9e197b75f0e5ad17dc1bb1431853bd4df7cff408.zip
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
```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions