-
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
extend modulo_one lint with modulo_zero (because it also fails) #663
Comments
negative numbers on which side of the operator? |
Here's my relevant const-eval code (plus the two impls below that function): https://github.com/rust-lang/rust/pull/30587/files#diff-f442b936625c0bc4782fd6b386b17b6cR367 |
Note that |
It appears that modulo zero is already checked by Rust: http://is.gd/Jj4zlg. |
@llogiq , @Manishearth : Is this issue still valid? Would like to work on it! |
Nope. |
@martiansideofthemoon but the are plenty of other lints you can start with 😄. Don’t hesitate to ask if you have any question. |
Yeah, I offered him https://github.com/Manishearth/rust-clippy/issues/476 in IRC 😄 |
Also who here knows whether/how modulo works with negative numbers? 😄
The text was updated successfully, but these errors were encountered: