@@ -68,7 +68,7 @@ pub use iter::{ArrayChunks, ArrayChunksMut};
68
68
#[ unstable( feature = "array_windows" , issue = "75027" ) ]
69
69
pub use iter:: ArrayWindows ;
70
70
71
- #[ stable( feature = "slice_group_by" , since = "CURRENT_RUSTC_VERSION " ) ]
71
+ #[ stable( feature = "slice_group_by" , since = "1.77.0 " ) ]
72
72
pub use iter:: { ChunkBy , ChunkByMut } ;
73
73
74
74
#[ stable( feature = "split_inclusive" , since = "1.51.0" ) ]
@@ -334,8 +334,8 @@ impl<T> [T] {
334
334
/// assert_eq!(Some(&[]), w.first_chunk::<0>());
335
335
/// ```
336
336
#[ inline]
337
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
338
- #[ rustc_const_stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
337
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
338
+ #[ rustc_const_stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
339
339
pub const fn first_chunk < const N : usize > ( & self ) -> Option < & [ T ; N ] > {
340
340
if self . len ( ) < N {
341
341
None
@@ -364,7 +364,7 @@ impl<T> [T] {
364
364
/// assert_eq!(None, x.first_chunk_mut::<4>());
365
365
/// ```
366
366
#[ inline]
367
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
367
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
368
368
#[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
369
369
pub const fn first_chunk_mut < const N : usize > ( & mut self ) -> Option < & mut [ T ; N ] > {
370
370
if self . len ( ) < N {
@@ -394,8 +394,8 @@ impl<T> [T] {
394
394
/// assert_eq!(None, x.split_first_chunk::<4>());
395
395
/// ```
396
396
#[ inline]
397
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
398
- #[ rustc_const_stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
397
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
398
+ #[ rustc_const_stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
399
399
pub const fn split_first_chunk < const N : usize > ( & self ) -> Option < ( & [ T ; N ] , & [ T ] ) > {
400
400
if self . len ( ) < N {
401
401
None
@@ -429,7 +429,7 @@ impl<T> [T] {
429
429
/// assert_eq!(None, x.split_first_chunk_mut::<4>());
430
430
/// ```
431
431
#[ inline]
432
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
432
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
433
433
#[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
434
434
pub const fn split_first_chunk_mut < const N : usize > (
435
435
& mut self ,
@@ -464,8 +464,8 @@ impl<T> [T] {
464
464
/// assert_eq!(None, x.split_last_chunk::<4>());
465
465
/// ```
466
466
#[ inline]
467
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
468
- #[ rustc_const_stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
467
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
468
+ #[ rustc_const_stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
469
469
pub const fn split_last_chunk < const N : usize > ( & self ) -> Option < ( & [ T ] , & [ T ; N ] ) > {
470
470
if self . len ( ) < N {
471
471
None
@@ -499,7 +499,7 @@ impl<T> [T] {
499
499
/// assert_eq!(None, x.split_last_chunk_mut::<4>());
500
500
/// ```
501
501
#[ inline]
502
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
502
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
503
503
#[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
504
504
pub const fn split_last_chunk_mut < const N : usize > (
505
505
& mut self ,
@@ -534,7 +534,7 @@ impl<T> [T] {
534
534
/// assert_eq!(Some(&[]), w.last_chunk::<0>());
535
535
/// ```
536
536
#[ inline]
537
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
537
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
538
538
#[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
539
539
pub const fn last_chunk < const N : usize > ( & self ) -> Option < & [ T ; N ] > {
540
540
if self . len ( ) < N {
@@ -568,7 +568,7 @@ impl<T> [T] {
568
568
/// assert_eq!(None, x.last_chunk_mut::<4>());
569
569
/// ```
570
570
#[ inline]
571
- #[ stable( feature = "slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION " ) ]
571
+ #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0 " ) ]
572
572
#[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
573
573
pub const fn last_chunk_mut < const N : usize > ( & mut self ) -> Option < & mut [ T ; N ] > {
574
574
if self . len ( ) < N {
@@ -1777,7 +1777,7 @@ impl<T> [T] {
1777
1777
/// assert_eq!(iter.next(), Some(&[2, 3, 4][..]));
1778
1778
/// assert_eq!(iter.next(), None);
1779
1779
/// ```
1780
- #[ stable( feature = "slice_group_by" , since = "CURRENT_RUSTC_VERSION " ) ]
1780
+ #[ stable( feature = "slice_group_by" , since = "1.77.0 " ) ]
1781
1781
#[ inline]
1782
1782
pub fn chunk_by < F > ( & self , pred : F ) -> ChunkBy < ' _ , T , F >
1783
1783
where
@@ -1818,7 +1818,7 @@ impl<T> [T] {
1818
1818
/// assert_eq!(iter.next(), Some(&mut [2, 3, 4][..]));
1819
1819
/// assert_eq!(iter.next(), None);
1820
1820
/// ```
1821
- #[ stable( feature = "slice_group_by" , since = "CURRENT_RUSTC_VERSION " ) ]
1821
+ #[ stable( feature = "slice_group_by" , since = "1.77.0 " ) ]
1822
1822
#[ inline]
1823
1823
pub fn chunk_by_mut < F > ( & mut self , pred : F ) -> ChunkByMut < ' _ , T , F >
1824
1824
where
@@ -1953,7 +1953,7 @@ impl<T> [T] {
1953
1953
#[ unstable( feature = "slice_split_at_unchecked" , reason = "new API" , issue = "76014" ) ]
1954
1954
#[ rustc_const_stable(
1955
1955
feature = "const_slice_split_at_unchecked" ,
1956
- since = "CURRENT_RUSTC_VERSION "
1956
+ since = "1.77.0 "
1957
1957
) ]
1958
1958
#[ inline]
1959
1959
#[ must_use]
0 commit comments