unused_parens
false positives and false negatives in code containing macro calls
#119426
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
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
The code suggested by rustc does not compile, because that pair of parentheses really is required.
Anything else?
I found a partly related issue #113563, in which @Nilstrieb writes:
However, I have filed this as a distinct issue because I am hopeful that the case in this issue might be easier to fix than the other one, because this one involves parentheses that come from outside the macro call, as opposed to parentheses that come from inside the macro definition.
The text was updated successfully, but these errors were encountered: