-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
properly null out ptr in LinkedList::split_off - fixes #26021 #26022
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -610,6 +610,7 @@ impl<T> LinkedList<T> { | |||
}; | |||
|
|||
mem::swap(&mut split_node.resolve().unwrap().next, &mut splitted_list.list_head); | |||
splitted_list.list_head.as_mut().unwrap().prev = Rawlink::none(); |
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.
Could you add a brief comment?
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.
What do you have in mind?
r=me with the comment |
@bors r=huonw p=1 |
📌 Commit e12d386 has been approved by |
whoops, the issue number is wrong. |
Actually fixes #26021 ... |
Great! |
triage: beta-accepted |
Still running tests...