Add experimental Iterator::contains#135018
Add experimental Iterator::contains#135018YkdWaWEzVmphR1Z1 wants to merge 1 commit intorust-lang:masterfrom YkdWaWEzVmphR1Z1:iter-contains
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.
Why is this reimplemented when it uses the same code as the default impl?
There was a problem hiding this comment.
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.
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.