False-positive unused_parens
missing macro cases
#138234
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
L-false-positive
Lint: False positive (should not have fired).
L-unused_parens
Lint: unused_parens
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
This:
expands to:
Where the parentheses are indeed overkill.
Hence the lint would somehow need to look at the original span to see if it's necessary.
I see 3 paths forward from this:
Point 1. is probably the easiest forward, the other ones probably require the information necessary for 1. anyway.
Other cases
Rust Version
Anything else?
Thank you all for your work. <3
The text was updated successfully, but these errors were encountered: