diff options
| author | surechen <chenshuo17@huawei.com> | 2024-10-11 20:27:46 +0800 |
|---|---|---|
| committer | surechen <chenshuo17@huawei.com> | 2024-10-12 09:32:25 +0800 |
| commit | 1e8d6d1ec3cad6bc7d88c0a8a993f69835e8422f (patch) | |
| tree | 159d34db6b8a345a96254f17c3736edf1b4a09b1 /compiler/rustc_codegen_llvm/src/declare.rs | |
| parent | 1b5aa96d6016bafe50e071b45d4d2e3c90fd766f (diff) | |
| download | rust-1e8d6d1ec3cad6bc7d88c0a8a993f69835e8422f.tar.gz rust-1e8d6d1ec3cad6bc7d88c0a8a993f69835e8422f.zip | |
Make unused_parens's suggestion considering expr's attributes
For the expr with attributes, like `let _ = (#[inline] || println!("Hello!"));`, the suggestion's span should contains the attributes, or the suggestion will remove them.
fixes #129833
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/declare.rs')
0 files changed, 0 insertions, 0 deletions
