@@ -1271,7 +1271,6 @@ impl<T> [T] {
12711271 /// # Examples
12721272 ///
12731273 /// ```
1274- /// #![feature(slice_as_chunks)]
12751274 /// let slice: &[char] = &['l', 'o', 'r', 'e', 'm', '!'];
12761275 /// let chunks: &[[char; 1]] =
12771276 /// // SAFETY: 1-element chunks never have remainder
@@ -1286,7 +1285,8 @@ impl<T> [T] {
12861285 /// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5
12871286 /// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
12881287 /// ```
1289- #[ unstable( feature = "slice_as_chunks" , issue = "74985" ) ]
1288+ #[ stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
1289+ #[ rustc_const_stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
12901290 #[ inline]
12911291 #[ must_use]
12921292 pub const unsafe fn as_chunks_unchecked < const N : usize > ( & self ) -> & [ [ T ; N ] ] {
@@ -1314,7 +1314,6 @@ impl<T> [T] {
13141314 /// # Examples
13151315 ///
13161316 /// ```
1317- /// #![feature(slice_as_chunks)]
13181317 /// let slice = ['l', 'o', 'r', 'e', 'm'];
13191318 /// let (chunks, remainder) = slice.as_chunks();
13201319 /// assert_eq!(chunks, &[['l', 'o'], ['r', 'e']]);
@@ -1324,14 +1323,14 @@ impl<T> [T] {
13241323 /// If you expect the slice to be an exact multiple, you can combine
13251324 /// `let`-`else` with an empty slice pattern:
13261325 /// ```
1327- /// #![feature(slice_as_chunks)]
13281326 /// let slice = ['R', 'u', 's', 't'];
13291327 /// let (chunks, []) = slice.as_chunks::<2>() else {
13301328 /// panic!("slice didn't have even length")
13311329 /// };
13321330 /// assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
13331331 /// ```
1334- #[ unstable( feature = "slice_as_chunks" , issue = "74985" ) ]
1332+ #[ stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
1333+ #[ rustc_const_stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
13351334 #[ inline]
13361335 #[ track_caller]
13371336 #[ must_use]
@@ -1359,13 +1358,13 @@ impl<T> [T] {
13591358 /// # Examples
13601359 ///
13611360 /// ```
1362- /// #![feature(slice_as_chunks)]
13631361 /// let slice = ['l', 'o', 'r', 'e', 'm'];
13641362 /// let (remainder, chunks) = slice.as_rchunks();
13651363 /// assert_eq!(remainder, &['l']);
13661364 /// assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
13671365 /// ```
1368- #[ unstable( feature = "slice_as_chunks" , issue = "74985" ) ]
1366+ #[ stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
1367+ #[ rustc_const_stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
13691368 #[ inline]
13701369 #[ track_caller]
13711370 #[ must_use]
@@ -1427,7 +1426,6 @@ impl<T> [T] {
14271426 /// # Examples
14281427 ///
14291428 /// ```
1430- /// #![feature(slice_as_chunks)]
14311429 /// let slice: &mut [char] = &mut ['l', 'o', 'r', 'e', 'm', '!'];
14321430 /// let chunks: &mut [[char; 1]] =
14331431 /// // SAFETY: 1-element chunks never have remainder
@@ -1444,7 +1442,8 @@ impl<T> [T] {
14441442 /// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked_mut() // The slice length is not a multiple of 5
14451443 /// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked_mut() // Zero-length chunks are never allowed
14461444 /// ```
1447- #[ unstable( feature = "slice_as_chunks" , issue = "74985" ) ]
1445+ #[ stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
1446+ #[ rustc_const_stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
14481447 #[ inline]
14491448 #[ must_use]
14501449 pub const unsafe fn as_chunks_unchecked_mut < const N : usize > ( & mut self ) -> & mut [ [ T ; N ] ] {
@@ -1472,7 +1471,6 @@ impl<T> [T] {
14721471 /// # Examples
14731472 ///
14741473 /// ```
1475- /// #![feature(slice_as_chunks)]
14761474 /// let v = &mut [0, 0, 0, 0, 0];
14771475 /// let mut count = 1;
14781476 ///
@@ -1484,7 +1482,8 @@ impl<T> [T] {
14841482 /// }
14851483 /// assert_eq!(v, &[1, 1, 2, 2, 9]);
14861484 /// ```
1487- #[ unstable( feature = "slice_as_chunks" , issue = "74985" ) ]
1485+ #[ stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
1486+ #[ rustc_const_stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
14881487 #[ inline]
14891488 #[ track_caller]
14901489 #[ must_use]
@@ -1512,7 +1511,6 @@ impl<T> [T] {
15121511 /// # Examples
15131512 ///
15141513 /// ```
1515- /// #![feature(slice_as_chunks)]
15161514 /// let v = &mut [0, 0, 0, 0, 0];
15171515 /// let mut count = 1;
15181516 ///
@@ -1524,7 +1522,8 @@ impl<T> [T] {
15241522 /// }
15251523 /// assert_eq!(v, &[9, 1, 1, 2, 2]);
15261524 /// ```
1527- #[ unstable( feature = "slice_as_chunks" , issue = "74985" ) ]
1525+ #[ stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
1526+ #[ rustc_const_stable( feature = "slice_as_chunks" , since = "CURRENT_RUSTC_VERSION" ) ]
15281527 #[ inline]
15291528 #[ track_caller]
15301529 #[ must_use]
0 commit comments