-
Notifications
You must be signed in to change notification settings - Fork 1.8k
prevents len_without_is_empty from yielding positive when len takes arguments besides &self
#10255
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
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Jarcho (or someone else) soon. Please see the contribution instructions for more information. |
more than just `&self` in non-standard implementations. changelog: Fix [`len_without_is_empty`] false positive when len has a non-standard method signature Fixes rust-lang#9520
9d398cb to
2fd94a4
Compare
lopopolo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the rest case!
|
is this still waiting on an additional review? |
|
Yes I believe so. I am not a member of the clippy team. |
|
Thank you for the fix. @bors r+ Just a note for future, it would be better to minimize the test cases. In this case the function bodies for the generic functions could have just been |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #9520
changelog: FP [
len_without_is_empty]: No longer lints, iflenas a non-default signature#10255