Skip to content

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
Contributor

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
Collaborator

bors commented Oct 16, 2017

📌 Commit 9e8b33e has been approved by BurntSushi

@bors
Copy link
Collaborator

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
Collaborator

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