about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2024-10-09 11:14:59 +0800
committersurechen <chenshuo17@huawei.com>2024-10-14 10:07:57 +0800
commitceced5322c9d2e3957e33e1944a3486731ccfa1e (patch)
tree50499b223a55b042d8c3729d7e5944277ba070c5 /compiler/rustc_codegen_llvm/src/builder.rs
parent1b5aa96d6016bafe50e071b45d4d2e3c90fd766f (diff)
downloadrust-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