Skip to content

Implement Clone for liballoc::collections::linked_list::Cursor. #71246

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

crlf0710
Copy link
Member

This implements Clone for linked list Cursor. Implementing Copy is also possible here, but i'm not sure whether i should also do it.

r? @Amanieu

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 17, 2020
@Amanieu
Copy link
Member

Amanieu commented Apr 17, 2020

I think a Copy implementation would be counterproductive here since we have move_prev and move_next which modify the cursor in-place.

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 17, 2020

📌 Commit 22e51cd has been approved by Amanieu

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 17, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 17, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#69642 (Use query to determine whether function needs const checking)
 - rust-lang#71239 (Rename `asm` test directory in favor of `llvm_asm`)
 - rust-lang#71246 (Implement `Clone` for `liballoc::collections::linked_list::Cursor`.)
 - rust-lang#71247 (Remove unnecessary variable intialization)
 - rust-lang#71254 (Minor fix and addition to doc comments)

Failed merges:

r? @ghost
@bors bors merged commit 07cb4f4 into rust-lang:master Apr 17, 2020
@crlf0710 crlf0710 deleted the linked_list_cursor branch April 18, 2020 00:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants