-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Inconsistency in IteratorExt::all and ::any #22617
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
Comments
cc @aturon |
isn't this because |
@oli-obk both iterators behave the same way, |
Thanks for the report, @Aatch. This was a mistake, and both should take This should be a trivial fix. |
(Should be flagged 1.0-beta P-backcompat-libs) |
Keeps the method consistent with `Iterator::any`. Closes rust-lang#22617 [breaking-change]
Keeps the method consistent with `Iterator::any`. Closes rust-lang#22617 [breaking-change]
1.0 beta, P-backcompat-libs. |
Keeps the method consistent with `Iterator::any`. Closes rust-lang#22617 [breaking-change]
One of the methods takes
&mut self
, the other takesself
, which is strange, since they are almost exactly the same code.I'm guessing that
IteratorExt::all
should take&mut self
, likeany
does.The text was updated successfully, but these errors were encountered: