Skip to content

Commit 3488679

Browse files
committed
Correct the const stabilization of last_chunk for slices
`<[T]>::last_chunk` should have become const stable as part of <rust-lang#117561>. Update the const stability gate to reflect this.
1 parent d71b3f4 commit 3488679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl<T> [T] {
544544
/// ```
545545
#[inline]
546546
#[stable(feature = "slice_first_last_chunk", since = "1.77.0")]
547-
#[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")]
547+
#[rustc_const_stable(feature = "slice_first_last_chunk", since = "1.77.0")]
548548
pub const fn last_chunk<const N: usize>(&self) -> Option<&[T; N]> {
549549
if self.len() < N {
550550
None

0 commit comments

Comments
 (0)