Lint masking bits and shift #6632
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
T-AST
Type: Requires working with the AST
What it does
Consider this code snippet:
We'd realize that the code is wrong.
>>
has stronger precedence than&
operator.So we has to use
()
to group(op & 0F000)
and the like.I'd like to have a lint about this.
Categories (optional)
Drawbacks
None.
The text was updated successfully, but these errors were encountered: