diff options
| author | surechen <chenshuo17@huawei.com> | 2024-10-09 11:14:59 +0800 |
|---|---|---|
| committer | surechen <chenshuo17@huawei.com> | 2024-10-14 10:07:57 +0800 |
| commit | ceced5322c9d2e3957e33e1944a3486731ccfa1e (patch) | |
| tree | 50499b223a55b042d8c3729d7e5944277ba070c5 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 1b5aa96d6016bafe50e071b45d4d2e3c90fd766f (diff) | |
| download | rust-ceced5322c9d2e3957e33e1944a3486731ccfa1e.tar.gz rust-ceced5322c9d2e3957e33e1944a3486731ccfa1e.zip | |
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/builder.rs')
0 files changed, 0 insertions, 0 deletions
