about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorCharles Lew <crlf0710@gmail.com>2020-04-25 16:33:11 +0800
committerCharles Lew <crlf0710@gmail.com>2020-04-25 16:33:11 +0800
commitb1fbd797c04ae151003372b9d9fb761fff669790 (patch)
treef406585ba62f5b433971d0c3ab2be3f52e82508c /src/liballoc
parent061256835886be38fcb2255d585ec4e1292b77d0 (diff)
downloadrust-b1fbd797c04ae151003372b9d9fb761fff669790.tar.gz
rust-b1fbd797c04ae151003372b9d9fb761fff669790.zip
Add missing Send and Sync bounds for linked list Cursor and CursorMut.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/collections/linked_list.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs
index af341e6c1ca..9321d38f3b7 100644
--- a/src/liballoc/collections/linked_list.rs
+++ b/src/liballoc/collections/linked_list.rs
@@ -1843,3 +1843,15 @@ unsafe impl<T: Send> Send for IterMut<'_, T> {}
 
 #[stable(feature = "rust1", since = "1.0.0")]
 unsafe impl<T: Sync> Sync for IterMut<'_, T> {}
+
+#[unstable(feature = "linked_list_cursors", issue = "58533")]
+unsafe impl<T: Send> Send for Cursor<'_, T> {}
+
+#[unstable(feature = "linked_list_cursors", issue = "58533")]
+unsafe impl<T: Sync> Sync for Cursor<'_, T> {}
+
+#[unstable(feature = "linked_list_cursors", issue = "58533")]
+unsafe impl<T: Send> Send for CursorMut<'_, T> {}
+
+#[unstable(feature = "linked_list_cursors", issue = "58533")]
+unsafe impl<T: Sync> Sync for CursorMut<'_, T> {}