@@ -1788,6 +1788,12 @@ unsafe impl<'a, T> TrustedRandomAccessNoCoerce for ChunksMut<'a, T> {
1788
1788
const MAY_HAVE_SIDE_EFFECT : bool = false ;
1789
1789
}
1790
1790
1791
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1792
+ unsafe impl < T > Send for ChunksMut < ' _ , T > where T : Send { }
1793
+
1794
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1795
+ unsafe impl < T > Sync for ChunksMut < ' _ , T > where T : Sync { }
1796
+
1791
1797
/// An iterator over a slice in (non-overlapping) chunks (`chunk_size` elements at a
1792
1798
/// time), starting at the beginning of the slice.
1793
1799
///
@@ -2114,6 +2120,12 @@ unsafe impl<'a, T> TrustedRandomAccessNoCoerce for ChunksExactMut<'a, T> {
2114
2120
const MAY_HAVE_SIDE_EFFECT : bool = false ;
2115
2121
}
2116
2122
2123
+ #[ stable( feature = "chunks_exact" , since = "1.31.0" ) ]
2124
+ unsafe impl < T > Send for ChunksExactMut < ' _ , T > where T : Send { }
2125
+
2126
+ #[ stable( feature = "chunks_exact" , since = "1.31.0" ) ]
2127
+ unsafe impl < T > Sync for ChunksExactMut < ' _ , T > where T : Sync { }
2128
+
2117
2129
/// A windowed iterator over a slice in overlapping chunks (`N` elements at a
2118
2130
/// time), starting at the beginning of the slice
2119
2131
///
@@ -2835,6 +2847,12 @@ unsafe impl<'a, T> TrustedRandomAccessNoCoerce for RChunksMut<'a, T> {
2835
2847
const MAY_HAVE_SIDE_EFFECT : bool = false ;
2836
2848
}
2837
2849
2850
+ #[ stable( feature = "rchunks" , since = "1.31.0" ) ]
2851
+ unsafe impl < T > Send for RChunksMut < ' _ , T > where T : Send { }
2852
+
2853
+ #[ stable( feature = "rchunks" , since = "1.31.0" ) ]
2854
+ unsafe impl < T > Sync for RChunksMut < ' _ , T > where T : Sync { }
2855
+
2838
2856
/// An iterator over a slice in (non-overlapping) chunks (`chunk_size` elements at a
2839
2857
/// time), starting at the end of the slice.
2840
2858
///
@@ -3168,6 +3186,12 @@ unsafe impl<'a, T> TrustedRandomAccessNoCoerce for RChunksExactMut<'a, T> {
3168
3186
const MAY_HAVE_SIDE_EFFECT : bool = false ;
3169
3187
}
3170
3188
3189
+ #[ stable( feature = "rchunks" , since = "1.31.0" ) ]
3190
+ unsafe impl < T > Send for RChunksExactMut < ' _ , T > where T : Send { }
3191
+
3192
+ #[ stable( feature = "rchunks" , since = "1.31.0" ) ]
3193
+ unsafe impl < T > Sync for RChunksExactMut < ' _ , T > where T : Sync { }
3194
+
3171
3195
#[ doc( hidden) ]
3172
3196
#[ unstable( feature = "trusted_random_access" , issue = "none" ) ]
3173
3197
unsafe impl < ' a , T > TrustedRandomAccess for Iter < ' a , T > { }
0 commit comments