@@ -352,7 +352,8 @@ impl<T> [T] {
352
352
/// ```
353
353
#[ inline]
354
354
#[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
355
- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
355
+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
356
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
356
357
pub const fn first_chunk_mut < const N : usize > ( & mut self ) -> Option < & mut [ T ; N ] > {
357
358
if self . len ( ) < N {
358
359
None
@@ -417,7 +418,8 @@ impl<T> [T] {
417
418
/// ```
418
419
#[ inline]
419
420
#[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
420
- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
421
+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
422
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
421
423
pub const fn split_first_chunk_mut < const N : usize > (
422
424
& mut self ,
423
425
) -> Option < ( & mut [ T ; N ] , & mut [ T ] ) > {
@@ -487,7 +489,8 @@ impl<T> [T] {
487
489
/// ```
488
490
#[ inline]
489
491
#[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
490
- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
492
+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
493
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
491
494
pub const fn split_last_chunk_mut < const N : usize > (
492
495
& mut self ,
493
496
) -> Option < ( & mut [ T ] , & mut [ T ; N ] ) > {
@@ -556,7 +559,8 @@ impl<T> [T] {
556
559
/// ```
557
560
#[ inline]
558
561
#[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
559
- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
562
+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
563
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
560
564
pub const fn last_chunk_mut < const N : usize > ( & mut self ) -> Option < & mut [ T ; N ] > {
561
565
if self . len ( ) < N {
562
566
None
@@ -1899,7 +1903,8 @@ impl<T> [T] {
1899
1903
#[ inline]
1900
1904
#[ track_caller]
1901
1905
#[ must_use]
1902
- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
1906
+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
1907
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
1903
1908
pub const fn split_at_mut ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
1904
1909
match self . split_at_mut_checked ( mid) {
1905
1910
Some ( pair) => pair,
@@ -2001,7 +2006,8 @@ impl<T> [T] {
2001
2006
/// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
2002
2007
/// ```
2003
2008
#[ stable( feature = "slice_split_at_unchecked" , since = "1.79.0" ) ]
2004
- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
2009
+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
2010
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2005
2011
#[ inline]
2006
2012
#[ must_use]
2007
2013
pub const unsafe fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
@@ -2101,7 +2107,8 @@ impl<T> [T] {
2101
2107
/// assert_eq!(None, v.split_at_mut_checked(7));
2102
2108
/// ```
2103
2109
#[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
2104
- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
2110
+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
2111
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2105
2112
#[ inline]
2106
2113
#[ must_use]
2107
2114
pub const fn split_at_mut_checked ( & mut self , mid : usize ) -> Option < ( & mut [ T ] , & mut [ T ] ) > {
0 commit comments