-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Add experimental Iterator::contains #135018
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 @joboet (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 (
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| false | ||
| } | ||
|
|
||
| fn contains<Q: ?Sized>(&mut self, item: Q) -> bool |
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.
Why is this reimplemented when it uses the same code as the default impl?
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.
It is to use SliceContains as a optimization later, but the trait has different trait bounds, so this requires further changes to the trait.
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.
You shouldn't add an empty specialization like this, either actually specialize it or leave it out for now.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
There is the itertools breakage with rust analyzer and the UI tests have still been failing. |
This comment has been minimized.
This comment has been minimized.
|
r? libs-api |
|
This is blocked on #125782 which will resolve the ambiguity errors. |
|
☔ The latest upstream changes (presumably #135937) made this pull request unmergeable. Please resolve the merge conflicts. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
@leb-kuchen this is no longer blocked so if you can resolve the conflicts we can push this forward |
|
I have already resolved the merge conflicts. But the format compatibility lint in rust analyzer still fails. Though I haven't checked the other tests. |
|
@leb-kuchen |
tracking issue
This is the continuation of the abandoned PR.