-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[arithmetic-side-effects] Consider negative numbers and add more tests #9867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
Hey @c410-f3r thank you for the pull request. Could you clarify the changelog entry a bit? Does "consider" means it lints cases with negative numbers or does it avoid FPs related to them? If so, which false positive. Thank you in advance! |
Marking as blocked, until other PRs are merged. Please ping me once that is done, so that I don't miss it. |
The entry has been updated. Let me know if it is good enough. |
Yes, that should be sufficient, thank you! |
☔ The latest upstream changes (presumably #9592) made this pull request unmergeable. Please resolve the merge conflicts. |
You will need to rebase on master. The Conflicts are probably not real conflicts. If you rebase with #9840 still needs to be merged AFAICT? |
Yeap, I will rebase once #9840 is merged |
ping @flip1995 |
@flip1995 I can try another reviewer if you don't have time |
[arithmetic-side-effects] Consider negative numbers and add more tests Same as #9867. Opening again because it is not possible to randomly choose a reviewer in an ongoing PR like in the rust repo. --- changelog: PF: [`arithmetic_side_effects`]: No longer lints on corner cases with negative number literals [#9867](#9867) <!-- changelog_checked -->
Depends on #9840 which depends on #9592.
Adds more tests from
integer_arithmetic
and also considers more corner-cases.changelog: PF: [`arithmetic_side_effects]: No longer lints on corner cases with negative number literals
#9867