Skip to content

Replace LinkedList's use of Box with Shared #34608

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
Jul 13, 2016
Merged

Replace LinkedList's use of Box with Shared #34608

merged 1 commit into from
Jul 13, 2016

Conversation

apasel422
Copy link
Contributor

Closes #34417

@rust-highfive
Copy link
Contributor

r? @alexcrichton

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

@alexcrichton
Copy link
Member

Awesome work @apasel422, looks great to me!

Just to make sure we've got at least another pair of eyes on this though, r? @bluss

@rust-highfive rust-highfive assigned bluss and unassigned alexcrichton Jul 2, 2016
@apasel422
Copy link
Contributor Author

Ping.

head: Option<Shared<Node<T>>>,
tail: Option<Shared<Node<T>>>,
len: usize,
marker: PhantomData<Box<Node<T>>>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly needed since Shared<X> contains PhantomData<X> and Box<X> and X have the same implications.

@bluss
Copy link
Member

bluss commented Jul 13, 2016

This looks good to me too. LinkedList gets into better shape with this change.

@bluss
Copy link
Member

bluss commented Jul 13, 2016

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 13, 2016

📌 Commit 6d3bf6e has been approved by bluss

@bors
Copy link
Collaborator

bors commented Jul 13, 2016

⌛ Testing commit 6d3bf6e with merge 362b665...

bors added a commit that referenced this pull request Jul 13, 2016
Replace `LinkedList`'s use of `Box` with `Shared`

Closes #34417
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants