-
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
eq_op false positive with floats #1466
Comments
I'd rather specialize reporting for floats and suggest |
I can't use |
True, but that's a fairly niche use case. Maybe it's best to simply |
Actually |
#6167 makes |
Consider the following function:
The
eq_op
warning is wrong here since floats only implementPartialOrd
and doingv != v
allows me to detect them in a generic context:Maybe a solution is to check whether the result of the expression returns something that implements
Ord
or not?The text was updated successfully, but these errors were encountered: