about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-14 17:06:37 +0200
committerGitHub <noreply@github.com>2024-10-14 17:06:37 +0200
commit75231f87642c9684e70af968ad7340716c53920b (patch)
treea8b35ae0d1b9c8d99ce89080434ed79489f9c57b /compiler/rustc_codegen_llvm/src
parent32062b4b8e95ce38302dd7a3e804e5fe1e8bb943 (diff)
parentceced5322c9d2e3957e33e1944a3486731ccfa1e (diff)
downloadrust-75231f87642c9684e70af968ad7340716c53920b.tar.gz
rust-75231f87642c9684e70af968ad7340716c53920b.zip
Rollup merge of #131430 - surechen:fix_130495, r=jieyouxu
Special treatment empty tuple when suggest adding a string literal in format macro.

For example:
```rust
let s = "123";
println!({}, "sss", s);
```
Suggest:
`println!("{:?} {} {}", {}, "sss", s);`

fixes #130170
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions