Incorrect clippy::useless_attribute
for unused_braces
#12223
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
unused_braces
is valid onuse
items.Lint Name
useless_attribute
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No errors.
#[allow(unused_braces)]
is a valid attribute onuse
statements, to avoid rust-analyzer triggeringunused_braces
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: