Skip to content

Commit 84a6684

Browse files
committed
Impl Sync/Send for Rawlink
1 parent d35ebcb commit 84a6684

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcollections/dlist.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ struct Rawlink<T> {
4343
}
4444

4545
impl<T> Copy for Rawlink<T> {}
46+
unsafe impl<T:'static+Send> Send for Rawlink<T> {}
47+
unsafe impl<T:Send+Sync> Sync for Rawlink<T> {}
4648

4749
struct Node<T> {
4850
next: Link<T>,

0 commit comments

Comments
 (0)