Skip to content

Commit 82642d7

Browse files
authored
Rollup merge of rust-lang#71548 - crlf0710:cursor_bounds, r=Amanieu
Add missing Send and Sync impls for linked list Cursor and CursorMut. Someone pointed out these to me, and i think it's indeed reasonable to add those impl. r? @Amanieu
2 parents ecef6c7 + 78a034d commit 82642d7

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
@@ -1841,3 +1841,15 @@ unsafe impl<T: Send> Send for IterMut<'_, T> {}
18411841

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

0 commit comments

Comments
 (0)