Lint: spurrious unused_parens on assignment of comparison #56033
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
L-unused_parens
Lint: unused_parens
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code triggers the
unused_parens
lint, but without the parens the equality operator can be (visually) confused with the assignment.The text was updated successfully, but these errors were encountered: