-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
core: derive Clone for result::IntoIter #45179
Conversation
It appears to be a simple oversight that `result::IntoIter<T>` doesn't implement `Clone` (where `T: Clone`). We do already have `Clone` for `result::Iter`, as well as the similar `option::IntoIter` and `Iter`.
r? @BurntSushi (rust_highfive has picked a reviewer for you, use r? to override) |
I suppose by using |
@cuviper No need to break it out, since |
ping @BurntSushi for review! pinging you on irc too :) |
Sounds good to me! @bors r+ |
📌 Commit 9e8b33e has been approved by |
core: derive Clone for result::IntoIter It appears to be a simple oversight that `result::IntoIter<T>` doesn't implement `Clone` (where `T: Clone`). We do already have `Clone` for `result::Iter`, as well as the similar `option::IntoIter` and `Iter`.
☀️ Test successful - status-appveyor, status-travis |
It appears to be a simple oversight that
result::IntoIter<T>
doesn'timplement
Clone
(whereT: Clone
). We do already haveClone
forresult::Iter
, as well as the similaroption::IntoIter
andIter
.