Skip to content
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

Merged
merged 1 commit into from
Oct 17, 2017

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Oct 10, 2017

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.

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`.
@rust-highfive
Copy link
Collaborator

r? @BurntSushi

(rust_highfive has picked a reviewer for you, use r? to override)

@cuviper
Copy link
Member Author

cuviper commented Oct 10, 2017

I suppose by using derive it is insta-stable, but I think it's a trivial addition. I can break out the impl if you'd rather have a stability tag on it.

@kennytm
Copy link
Member

kennytm commented Oct 11, 2017

@cuviper No need to break it out, since impl are insta-stable as well 😆.

@aidanhs aidanhs added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 12, 2017
@carols10cents
Copy link
Member

ping @BurntSushi for review! pinging you on irc too :)

@BurntSushi
Copy link
Member

Sounds good to me! @bors r+

@bors
Copy link
Contributor

bors commented Oct 16, 2017

📌 Commit 9e8b33e has been approved by BurntSushi

@bors
Copy link
Contributor

bors commented Oct 17, 2017

⌛ Testing commit 9e8b33e with merge db80da1...

bors added a commit that referenced this pull request Oct 17, 2017
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`.
@bors
Copy link
Contributor

bors commented Oct 17, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: BurntSushi
Pushing db80da1 to master...

@bors bors merged commit 9e8b33e into rust-lang:master Oct 17, 2017
@cuviper cuviper deleted the result-intoiter-clone branch October 19, 2017 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants