Skip to content

Commit b1fbd79

Browse files
committed
Add missing Send and Sync bounds for linked list Cursor and CursorMut.
1 parent 0612568 commit b1fbd79

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/liballoc/collections/linked_list.rs

+12
Original file line numberDiff line numberDiff line change
@@ -1843,3 +1843,15 @@ unsafe impl<T: Send> Send for IterMut<'_, T> {}
18431843

18441844
#[stable(feature = "rust1", since = "1.0.0")]
18451845
unsafe impl<T: Sync> Sync for IterMut<'_, T> {}
1846+
1847+
#[unstable(feature = "linked_list_cursors", issue = "58533")]
1848+
unsafe impl<T: Send> Send for Cursor<'_, T> {}
1849+
1850+
#[unstable(feature = "linked_list_cursors", issue = "58533")]
1851+
unsafe impl<T: Sync> Sync for Cursor<'_, T> {}
1852+
1853+
#[unstable(feature = "linked_list_cursors", issue = "58533")]
1854+
unsafe impl<T: Send> Send for CursorMut<'_, T> {}
1855+
1856+
#[unstable(feature = "linked_list_cursors", issue = "58533")]
1857+
unsafe impl<T: Sync> Sync for CursorMut<'_, T> {}

0 commit comments

Comments
 (0)