about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-05-07 03:03:44 -0500
committerTrevor Gross <tmgross@umich.edu>2024-05-07 03:03:44 -0500
commit3488679768d8dff17905f69bf6413fc259004a3f (patch)
treed4b439396a9adc0792840fe28f4f7f4083378c0b
parentd71b3f486ac5e990acc33b22d308fcd57cbe9114 (diff)
downloadrust-3488679768d8dff17905f69bf6413fc259004a3f.tar.gz
rust-3488679768d8dff17905f69bf6413fc259004a3f.zip
Correct the const stabilization of `last_chunk` for slices
`<[T]>::last_chunk` should have become const stable as part of
<https://github.com/rust-lang/rust/pull/117561>. Update the const
stability gate to reflect this.
-rw-r--r--library/core/src/slice/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index ed7bcec89b9..133cde8c097 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -544,7 +544,7 @@ impl<T> [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<const N: usize>(&self) -> Option<&[T; N]> {
         if self.len() < N {
             None