Skip to content

Conversation

@khayyamsaleem
Copy link
Contributor

@khayyamsaleem khayyamsaleem commented Jan 29, 2023

Fixes #9520


changelog: FP [len_without_is_empty]: No longer lints, if len as a non-default signature
#10255

@rustbot
Copy link
Collaborator

rustbot commented Jan 29, 2023

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.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 29, 2023
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
Copy link

@lopopolo lopopolo left a 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!

@khayyamsaleem
Copy link
Contributor Author

is this still waiting on an additional review?

@lopopolo
Copy link

Yes I believe so. I am not a member of the clippy team.

@Jarcho
Copy link
Contributor

Jarcho commented Jan 30, 2023

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 unimplemented!().

@bors
Copy link
Contributor

bors commented Jan 30, 2023

📌 Commit 2fd94a4 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 30, 2023

⌛ Testing commit 2fd94a4 with merge 173fac0...

@bors
Copy link
Contributor

bors commented Jan 30, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 173fac0 to master...

@bors bors merged commit 173fac0 into rust-lang:master Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

len_without_is_empty triggers when both len and is_empty have non-standard signatures

5 participants