about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Sedlak <daniel@sedlak.dev>2024-02-02 10:13:22 +0100
committerDaniel Sedlak <daniel@sedlak.dev>2024-02-10 09:52:11 +0100
commit67c03579bc45a280548499d37ba2db7ef2e9f6a3 (patch)
treeba9e9c3f41e0a72e8a344ee0fb73c9899ce0c840
parent68125c72d389060fe9aaee8d87ebd834f417c9fc (diff)
downloadrust-67c03579bc45a280548499d37ba2db7ef2e9f6a3.tar.gz
rust-67c03579bc45a280548499d37ba2db7ef2e9f6a3.zip
Stabilize slice_split_at_unchecked
-rw-r--r--library/core/src/lib.rs1
-rw-r--r--library/core/src/slice/mod.rs8
2 files changed, 2 insertions, 7 deletions
diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs
index b54680a61b4..ee41056eaac 100644
--- a/library/core/src/lib.rs
+++ b/library/core/src/lib.rs
@@ -186,7 +186,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 73e92ed1dad..e21c6bd797a 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -1928,8 +1928,6 @@ impl<T> [T] {
     /// # Examples
     ///
     /// ```
-    /// #![feature(slice_split_at_unchecked)]
-    ///
     /// let v = [1, 2, 3, 4, 5, 6];
     ///
     /// unsafe {
@@ -1950,7 +1948,7 @@ impl<T> [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 = "1.77.0")]
     #[inline]
     #[must_use]
@@ -1991,8 +1989,6 @@ impl<T> [T] {
     /// # Examples
     ///
     /// ```
-    /// #![feature(slice_split_at_unchecked)]
-    ///
     /// let mut v = [1, 0, 3, 0, 5, 6];
     /// // scoped to restrict the lifetime of the borrows
     /// unsafe {
@@ -2004,7 +2000,7 @@ impl<T> [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]