-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add new lint while_float
#12765
Add new lint while_float
#12765
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @xFrednet (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
r? @llogiq |
Thank you for making clippy better! This is a good starting point. We might want to extend the lint to look into the loop variant and check if the increment is integer, but as this is a nursery lint, we might well do that in a follow-up PR. So I just left a small doc suggestion, otherwise this looks good to merge. |
Co-authored-by: llogiq <bogusandre@gmail.com>
Ok, let's merge this and see how it fares. @bors r+ If you'd like to keep working on this lint, here are some ideas for possible future directions:
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
This PR adds a nursery lint that checks for while loops comparing floating point values.
changelog:
Fixes #758