Skip to content

Commit cb8a7eb

Browse files
committed
Stabilize slice_split_at_unchecked
1 parent 11f32b7 commit cb8a7eb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

library/core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@
185185
#![feature(ptr_metadata)]
186186
#![feature(set_ptr_value)]
187187
#![feature(slice_ptr_get)]
188-
#![feature(slice_split_at_unchecked)]
189188
#![feature(split_at_checked)]
190189
#![feature(str_internals)]
191190
#![feature(str_split_inclusive_remainder)]

library/core/src/slice/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,6 @@ impl<T> [T] {
19281928
/// # Examples
19291929
///
19301930
/// ```
1931-
/// #![feature(slice_split_at_unchecked)]
19321931
///
19331932
/// let v = [1, 2, 3, 4, 5, 6];
19341933
///
@@ -1950,7 +1949,7 @@ impl<T> [T] {
19501949
/// assert_eq!(right, []);
19511950
/// }
19521951
/// ```
1953-
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
1952+
#[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")]
19541953
#[rustc_const_stable(
19551954
feature = "const_slice_split_at_unchecked",
19561955
since = "CURRENT_RUSTC_VERSION"
@@ -1994,7 +1993,6 @@ impl<T> [T] {
19941993
/// # Examples
19951994
///
19961995
/// ```
1997-
/// #![feature(slice_split_at_unchecked)]
19981996
///
19991997
/// let mut v = [1, 0, 3, 0, 5, 6];
20001998
/// // scoped to restrict the lifetime of the borrows
@@ -2007,7 +2005,7 @@ impl<T> [T] {
20072005
/// }
20082006
/// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
20092007
/// ```
2010-
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
2008+
#[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")]
20112009
#[rustc_const_unstable(feature = "const_slice_split_at_mut", issue = "101804")]
20122010
#[inline]
20132011
#[must_use]

0 commit comments

Comments
 (0)