@@ -2200,20 +2200,23 @@ unsafe impl<T> Sync for ChunksExactMut<'_, T> where T: Sync {}
22002200/// [`array_windows`]: slice::array_windows
22012201/// [slices]: slice
22022202#[ derive( Debug , Clone , Copy ) ]
2203- #[ unstable ( feature = "array_windows" , issue = "75027 " ) ]
2203+ #[ stable ( feature = "array_windows" , since = "CURRENT_RUSTC_VERSION " ) ]
22042204#[ must_use = "iterators are lazy and do nothing unless consumed" ]
22052205pub struct ArrayWindows < ' a , T : ' a , const N : usize > {
22062206 v : & ' a [ T ] ,
22072207}
2208-
2208+ #[ stable( feature = "array_windows" , since = "CURRENT_RUSTC_VERSION" ) ]
2209+ unsafe impl < ' a , T : Send , const N : usize > Send for ArrayWindows < ' a , T , N > { }
2210+ #[ stable( feature = "array_windows" , since = "CURRENT_RUSTC_VERSION" ) ]
2211+ unsafe impl < ' a , T : Sync , const N : usize > Sync for ArrayWindows < ' a , T , N > { }
22092212impl < ' a , T : ' a , const N : usize > ArrayWindows < ' a , T , N > {
22102213 #[ inline]
22112214 pub ( super ) const fn new ( slice : & ' a [ T ] ) -> Self {
22122215 Self { v : slice }
22132216 }
22142217}
22152218
2216- #[ unstable ( feature = "array_windows" , issue = "75027 " ) ]
2219+ #[ stable ( feature = "array_windows" , since = "CURRENT_RUSTC_VERSION " ) ]
22172220impl < ' a , T , const N : usize > Iterator for ArrayWindows < ' a , T , N > {
22182221 type Item = & ' a [ T ; N ] ;
22192222
@@ -2250,7 +2253,7 @@ impl<'a, T, const N: usize> Iterator for ArrayWindows<'a, T, N> {
22502253 }
22512254}
22522255
2253- #[ unstable ( feature = "array_windows" , issue = "75027 " ) ]
2256+ #[ stable ( feature = "array_windows" , since = "CURRENT_RUSTC_VERSION " ) ]
22542257impl < ' a , T , const N : usize > DoubleEndedIterator for ArrayWindows < ' a , T , N > {
22552258 #[ inline]
22562259 fn next_back ( & mut self ) -> Option < & ' a [ T ; N ] > {
@@ -2269,7 +2272,7 @@ impl<'a, T, const N: usize> DoubleEndedIterator for ArrayWindows<'a, T, N> {
22692272 }
22702273}
22712274
2272- #[ unstable ( feature = "array_windows" , issue = "75027 " ) ]
2275+ #[ stable ( feature = "array_windows" , since = "CURRENT_RUSTC_VERSION " ) ]
22732276impl < T , const N : usize > ExactSizeIterator for ArrayWindows < ' _ , T , N > {
22742277 fn is_empty ( & self ) -> bool {
22752278 self . v . len ( ) < N
0 commit comments