-
Notifications
You must be signed in to change notification settings - Fork 13.3k
core::iter::order functions now take two types of iterators. #14289
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
Could you add a test that uses two types of iterators as well? It's ok if you don't test all of them. |
Looks good! Could you squash the commits please? (r=me when done) |
(i chatted with huon and relayed that I didn't think squashing was strictly required in a scenario like this, i.e. the commits can be considered independently. He was cool with me r+'ing.) |
Before merging, I want to rename the test that I wrote to not include |
Can someone explain why these tests passed through travis, but not buildbot? More interesting is that the existing test in the same module that I'm working on should also be failing with the same errors because it also uses |
Travis does not run a comprehensive test suite, and The failure is likely because libcore doesn't have prelude injection, so the |
Oh dang. I was running the Travis tests on my machine thinking they were comprehensive. Thanks for the tip; I'll get this fixed up when I get back tonight! |
Previously the type signatures of the ordering functions in `core::iter::order` took two iterators, but only if they were the same type of iterator. This commit loosens that restriction and allows different kinds of iterators (but with the same type of elements) to be compared.
r=huonw |
Closes #14278. Previously the type signatures of the ordering functions in `core::iter::order` took two iterators, but only if they were the same type of iterator. This commit loosens that restriction and allows different kinds of iterators (but with the same type of elements) to be compared.
Closes #14278.
Previously the type signatures of the ordering functions in
core::iter::order
took two iterators, but only if they were the same type of iterator. This commit loosens that restriction and allows different kinds of iterators (but with the same type of elements) to be compared.