summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis
diff options
context:
space:
mode:
authorsurechen <chenshuo17@huawei.com>2024-10-11 20:27:46 +0800
committersurechen <chenshuo17@huawei.com>2024-10-12 09:32:25 +0800
commit1e8d6d1ec3cad6bc7d88c0a8a993f69835e8422f (patch)
tree159d34db6b8a345a96254f17c3736edf1b4a09b1 /compiler/rustc_pattern_analysis
parent1b5aa96d6016bafe50e071b45d4d2e3c90fd766f (diff)
downloadrust-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_pattern_analysis')
0 files changed, 0 insertions, 0 deletions