diff options
| author | Charles Lew <crlf0710@gmail.com> | 2020-04-25 16:33:11 +0800 |
|---|---|---|
| committer | Charles Lew <crlf0710@gmail.com> | 2020-04-25 16:33:11 +0800 |
| commit | b1fbd797c04ae151003372b9d9fb761fff669790 (patch) | |
| tree | f406585ba62f5b433971d0c3ab2be3f52e82508c /src/liballoc | |
| parent | 061256835886be38fcb2255d585ec4e1292b77d0 (diff) | |
| download | rust-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.rs | 12 |
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> {} |
