@@ -4531,8 +4531,6 @@ impl<T, const N: usize> [[T; N]] {
45314531 /// # Examples
45324532 ///
45334533 /// ```
4534- /// #![feature(slice_flatten)]
4535- ///
45364534 /// assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
45374535 ///
45384536 /// assert_eq!(
@@ -4546,7 +4544,7 @@ impl<T, const N: usize> [[T; N]] {
45464544 /// let empty_slice_of_arrays: &[[u32; 10]] = &[];
45474545 /// assert!(empty_slice_of_arrays.as_flattened().is_empty());
45484546 /// ```
4549- #[ unstable ( feature = "slice_flatten" , issue = "95629 " ) ]
4547+ #[ stable ( feature = "slice_flatten" , since = "CURRENT_RUSTC_VERSION " ) ]
45504548 pub const fn as_flattened ( & self ) -> & [ T ] {
45514549 let len = if T :: IS_ZST {
45524550 self . len ( ) . checked_mul ( N ) . expect ( "slice len overflow" )
@@ -4572,8 +4570,6 @@ impl<T, const N: usize> [[T; N]] {
45724570 /// # Examples
45734571 ///
45744572 /// ```
4575- /// #![feature(slice_flatten)]
4576- ///
45774573 /// fn add_5_to_all(slice: &mut [i32]) {
45784574 /// for i in slice {
45794575 /// *i += 5;
@@ -4584,7 +4580,7 @@ impl<T, const N: usize> [[T; N]] {
45844580 /// add_5_to_all(array.as_flattened_mut());
45854581 /// assert_eq!(array, [[6, 7, 8], [9, 10, 11], [12, 13, 14]]);
45864582 /// ```
4587- #[ unstable ( feature = "slice_flatten" , issue = "95629 " ) ]
4583+ #[ stable ( feature = "slice_flatten" , since = "CURRENT_RUSTC_VERSION " ) ]
45884584 pub fn as_flattened_mut ( & mut self ) -> & mut [ T ] {
45894585 let len = if T :: IS_ZST {
45904586 self . len ( ) . checked_mul ( N ) . expect ( "slice len overflow" )
0 commit comments