@@ -356,7 +356,8 @@ impl<T> [T] {
356356 /// ```
357357 #[ inline]
358358 #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
359- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
359+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
360+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
360361 pub const fn first_chunk_mut < const N : usize > ( & mut self ) -> Option < & mut [ T ; N ] > {
361362 if self . len ( ) < N {
362363 None
@@ -421,7 +422,8 @@ impl<T> [T] {
421422 /// ```
422423 #[ inline]
423424 #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
424- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
425+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
426+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
425427 pub const fn split_first_chunk_mut < const N : usize > (
426428 & mut self ,
427429 ) -> Option < ( & mut [ T ; N ] , & mut [ T ] ) > {
@@ -491,7 +493,8 @@ impl<T> [T] {
491493 /// ```
492494 #[ inline]
493495 #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
494- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
496+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
497+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
495498 pub const fn split_last_chunk_mut < const N : usize > (
496499 & mut self ,
497500 ) -> Option < ( & mut [ T ] , & mut [ T ; N ] ) > {
@@ -560,7 +563,8 @@ impl<T> [T] {
560563 /// ```
561564 #[ inline]
562565 #[ stable( feature = "slice_first_last_chunk" , since = "1.77.0" ) ]
563- #[ rustc_const_unstable( feature = "const_slice_first_last_chunk" , issue = "111774" ) ]
566+ #[ rustc_const_stable( feature = "const_slice_first_last_chunk" , since = "CURRENT_RUSTC_VERSION" ) ]
567+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
564568 pub const fn last_chunk_mut < const N : usize > ( & mut self ) -> Option < & mut [ T ; N ] > {
565569 if self . len ( ) < N {
566570 None
@@ -1903,7 +1907,8 @@ impl<T> [T] {
19031907 #[ inline]
19041908 #[ track_caller]
19051909 #[ must_use]
1906- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
1910+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
1911+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
19071912 pub const fn split_at_mut ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
19081913 match self . split_at_mut_checked ( mid) {
19091914 Some ( pair) => pair,
@@ -2005,7 +2010,8 @@ impl<T> [T] {
20052010 /// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
20062011 /// ```
20072012 #[ stable( feature = "slice_split_at_unchecked" , since = "1.79.0" ) ]
2008- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
2013+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
2014+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
20092015 #[ inline]
20102016 #[ must_use]
20112017 pub const unsafe fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
@@ -2105,7 +2111,8 @@ impl<T> [T] {
21052111 /// assert_eq!(None, v.split_at_mut_checked(7));
21062112 /// ```
21072113 #[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
2108- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
2114+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
2115+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
21092116 #[ inline]
21102117 #[ must_use]
21112118 pub const fn split_at_mut_checked ( & mut self , mid : usize ) -> Option < ( & mut [ T ] , & mut [ T ] ) > {
0 commit comments