From cb8a7eb9444f31a4ef0a434d86dc9e39684d47f8 Mon Sep 17 00:00:00 2001 From: Daniel Sedlak Date: Fri, 2 Feb 2024 10:13:22 +0100 Subject: [PATCH] Stabilize slice_split_at_unchecked --- library/core/src/lib.rs | 1 - library/core/src/slice/mod.rs | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index 2af242d4b5071..111cc01c5f5f9 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -185,7 +185,6 @@ #![feature(ptr_metadata)] #![feature(set_ptr_value)] #![feature(slice_ptr_get)] -#![feature(slice_split_at_unchecked)] #![feature(split_at_checked)] #![feature(str_internals)] #![feature(str_split_inclusive_remainder)] diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 2d93ef6fbeb34..554f2d12e79f2 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -1928,7 +1928,6 @@ impl [T] { /// # Examples /// /// ``` - /// #![feature(slice_split_at_unchecked)] /// /// let v = [1, 2, 3, 4, 5, 6]; /// @@ -1950,7 +1949,7 @@ impl [T] { /// assert_eq!(right, []); /// } /// ``` - #[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")] + #[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")] #[rustc_const_stable( feature = "const_slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION" @@ -1994,7 +1993,6 @@ impl [T] { /// # Examples /// /// ``` - /// #![feature(slice_split_at_unchecked)] /// /// let mut v = [1, 0, 3, 0, 5, 6]; /// // scoped to restrict the lifetime of the borrows @@ -2007,7 +2005,7 @@ impl [T] { /// } /// assert_eq!(v, [1, 2, 3, 4, 5, 6]); /// ``` - #[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")] + #[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")] #[rustc_const_unstable(feature = "const_slice_split_at_mut", issue = "101804")] #[inline] #[must_use]