-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Don't warn about modulo arithmetic when comparing to zero #12178
Don't warn about modulo arithmetic when comparing to zero #12178
Conversation
r? @llogiq (rustbot has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #12144) made this pull request unmergeable. Please resolve the merge conflicts. |
Thank you, r=me after a rebase. |
db99c3e
to
7078f18
Compare
@llogiq I rebased. Is there anything else you need me to do? Sorry if I missed something obvious. I'm a new contributor. |
☔ The latest upstream changes (presumably #12179) made this pull request unmergeable. Please resolve the merge conflicts. |
7078f18
to
7af81b7
Compare
Add lint configuration for `modulo_arithmetic` Collect meta-data
7af81b7
to
e456c28
Compare
Thank you! Sorry for the delay. @bors r+ |
…ogiq Don't warn about modulo arithmetic when comparing to zero closes #12006 By default, don't warn about modulo arithmetic when comparing to zero. This behavior is configurable via `clippy.toml`. See discussion [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.E2.9C.94.20Is.20issue.20.2312006.20worth.20implementing.3F) changelog: [`modulo_arithmetic`]: By default don't lint when comparing the result of a modulo operation to zero.
💔 Test failed - checks-action_test |
@bors retry Seems the Mac runner is acting up again |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
closes #12006
By default, don't warn about modulo arithmetic when comparing to zero. This behavior is configurable via
clippy.toml
.See discussion on Zulip
changelog: [
modulo_arithmetic
]: By default don't lint when comparing the result of a modulo operation to zero.