From b1fbd797c04ae151003372b9d9fb761fff669790 Mon Sep 17 00:00:00 2001 From: Charles Lew Date: Sat, 25 Apr 2020 16:33:11 +0800 Subject: Add missing Send and Sync bounds for linked list Cursor and CursorMut. --- src/liballoc/collections/linked_list.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/liballoc') 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 Send for IterMut<'_, T> {} #[stable(feature = "rust1", since = "1.0.0")] unsafe impl Sync for IterMut<'_, T> {} + +#[unstable(feature = "linked_list_cursors", issue = "58533")] +unsafe impl Send for Cursor<'_, T> {} + +#[unstable(feature = "linked_list_cursors", issue = "58533")] +unsafe impl Sync for Cursor<'_, T> {} + +#[unstable(feature = "linked_list_cursors", issue = "58533")] +unsafe impl Send for CursorMut<'_, T> {} + +#[unstable(feature = "linked_list_cursors", issue = "58533")] +unsafe impl Sync for CursorMut<'_, T> {} -- cgit 1.4.1-3-g733a5