Skip to content

Commit 67c0357

Browse files
committed
Stabilize slice_split_at_unchecked
1 parent 68125c7 commit 67c0357

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

library/core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@
186186
#![feature(ptr_metadata)]
187187
#![feature(set_ptr_value)]
188188
#![feature(slice_ptr_get)]
189-
#![feature(slice_split_at_unchecked)]
190189
#![feature(split_at_checked)]
191190
#![feature(str_internals)]
192191
#![feature(str_split_inclusive_remainder)]

library/core/src/slice/mod.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1928,8 +1928,6 @@ impl<T> [T] {
19281928
/// # Examples
19291929
///
19301930
/// ```
1931-
/// #![feature(slice_split_at_unchecked)]
1932-
///
19331931
/// let v = [1, 2, 3, 4, 5, 6];
19341932
///
19351933
/// unsafe {
@@ -1950,7 +1948,7 @@ impl<T> [T] {
19501948
/// assert_eq!(right, []);
19511949
/// }
19521950
/// ```
1953-
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
1951+
#[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")]
19541952
#[rustc_const_stable(feature = "const_slice_split_at_unchecked", since = "1.77.0")]
19551953
#[inline]
19561954
#[must_use]
@@ -1991,8 +1989,6 @@ impl<T> [T] {
19911989
/// # Examples
19921990
///
19931991
/// ```
1994-
/// #![feature(slice_split_at_unchecked)]
1995-
///
19961992
/// let mut v = [1, 0, 3, 0, 5, 6];
19971993
/// // scoped to restrict the lifetime of the borrows
19981994
/// unsafe {
@@ -2004,7 +2000,7 @@ impl<T> [T] {
20042000
/// }
20052001
/// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
20062002
/// ```
2007-
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
2003+
#[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")]
20082004
#[rustc_const_unstable(feature = "const_slice_split_at_mut", issue = "101804")]
20092005
#[inline]
20102006
#[must_use]

0 commit comments

Comments
 (0)