You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In std, the linked list was implemented based on Box type. But it's wrong.
Box uses Unique, which requires that it "the referent of the pointer should not be modified without a unique path to the Unique reference". This effectively means that Unique doesn't allow aliases, but this rule violated by the prev pointer which point to the same node as a Unique.
The text was updated successfully, but these errors were encountered:
Refer to : rust-lang/rust#34417
In std, the linked list was implemented based on
Box
type. But it's wrong.The text was updated successfully, but these errors were encountered: