Skip to content

Commit 6eba9d7

Browse files
committed
Auto merge of rust-lang#124836 - tgross35:const-slice-last-chunk, r=BurntSushi
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.
2 parents f9f006d + 252441d commit 6eba9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)