diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-14 17:06:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-14 17:06:37 +0200 |
| commit | 75231f87642c9684e70af968ad7340716c53920b (patch) | |
| tree | a8b35ae0d1b9c8d99ce89080434ed79489f9c57b /compiler/rustc_codegen_llvm/src | |
| parent | 32062b4b8e95ce38302dd7a3e804e5fe1e8bb943 (diff) | |
| parent | ceced5322c9d2e3957e33e1944a3486731ccfa1e (diff) | |
| download | rust-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
