From 3488679768d8dff17905f69bf6413fc259004a3f Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Tue, 7 May 2024 03:03:44 -0500 Subject: [PATCH] Correct the const stabilization of `last_chunk` for slices `<[T]>::last_chunk` should have become const stable as part of . Update the const stability gate to reflect this. --- library/core/src/slice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index ed7bcec89b9f9..133cde8c09703 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -544,7 +544,7 @@ impl [T] { /// ``` #[inline] #[stable(feature = "slice_first_last_chunk", since = "1.77.0")] - #[rustc_const_unstable(feature = "const_slice_first_last_chunk", issue = "111774")] + #[rustc_const_stable(feature = "slice_first_last_chunk", since = "1.77.0")] pub const fn last_chunk(&self) -> Option<&[T; N]> { if self.len() < N { None