@@ -1899,7 +1899,8 @@ impl<T> [T] {
1899
1899
#[ inline]
1900
1900
#[ track_caller]
1901
1901
#[ must_use]
1902
- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
1902
+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
1903
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
1903
1904
pub const fn split_at_mut ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
1904
1905
match self . split_at_mut_checked ( mid) {
1905
1906
Some ( pair) => pair,
@@ -2001,7 +2002,9 @@ impl<T> [T] {
2001
2002
/// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
2002
2003
/// ```
2003
2004
#[ stable( feature = "slice_split_at_unchecked" , since = "1.79.0" ) ]
2004
- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
2005
+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
2006
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2007
+ #[ rustc_allow_const_fn_unstable( const_slice_from_raw_parts_mut) ] // TODO Wait for the Stabilization before merging!
2005
2008
#[ inline]
2006
2009
#[ must_use]
2007
2010
pub const unsafe fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut [ T ] , & mut [ T ] ) {
@@ -2101,7 +2104,8 @@ impl<T> [T] {
2101
2104
/// assert_eq!(None, v.split_at_mut_checked(7));
2102
2105
/// ```
2103
2106
#[ stable( feature = "split_at_checked" , since = "1.80.0" ) ]
2104
- #[ rustc_const_unstable( feature = "const_slice_split_at_mut" , issue = "101804" ) ]
2107
+ #[ rustc_const_stable( feature = "const_slice_split_at_mut" , since = "CURRENT_RUSTC_VERSION" ) ]
2108
+ #[ cfg_attr( bootstrap, rustc_allow_const_fn_unstable( const_mut_refs) ) ]
2105
2109
#[ inline]
2106
2110
#[ must_use]
2107
2111
pub const fn split_at_mut_checked ( & mut self , mid : usize ) -> Option < ( & mut [ T ] , & mut [ T ] ) > {
0 commit comments