-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Replace LinkedList
's use of Box
with Shared
#34608
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
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 |
Ping. |
head: Option<Shared<Node<T>>>, | ||
tail: Option<Shared<Node<T>>>, | ||
len: usize, | ||
marker: PhantomData<Box<Node<T>>>, |
There was a problem hiding this comment.
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.
This looks good to me too. LinkedList gets into better shape with this change. |
@bors r+ |
📌 Commit 6d3bf6e has been approved by |
Replace `LinkedList`'s use of `Box` with `Shared` Closes #34417
Closes #34417