Skip to content

Commit fe2ec25

Browse files
authored
Unrolled build for rust-lang#120577
Rollup merge of rust-lang#120577 - wutchzone:slice_split_at_unchecked, r=m-ou-se Stabilize slice_split_at_unchecked Greetings! I took the opportunity, and I tried to stabilize the `slice_split_at_unchecked` feature. I followed the guidelines, and I hope everything was done correctly 🤞 . Closes rust-lang#76014
2 parents d6eb0f5 + 67c0357 commit fe2ec25

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
@@ -190,7 +190,6 @@
190190
#![feature(ptr_metadata)]
191191
#![feature(set_ptr_value)]
192192
#![feature(slice_ptr_get)]
193-
#![feature(slice_split_at_unchecked)]
194193
#![feature(split_at_checked)]
195194
#![feature(str_internals)]
196195
#![feature(str_split_inclusive_remainder)]

library/core/src/slice/mod.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1944,8 +1944,6 @@ impl<T> [T] {
19441944
/// # Examples
19451945
///
19461946
/// ```
1947-
/// #![feature(slice_split_at_unchecked)]
1948-
///
19491947
/// let v = [1, 2, 3, 4, 5, 6];
19501948
///
19511949
/// unsafe {
@@ -1966,7 +1964,7 @@ impl<T> [T] {
19661964
/// assert_eq!(right, []);
19671965
/// }
19681966
/// ```
1969-
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
1967+
#[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")]
19701968
#[rustc_const_stable(feature = "const_slice_split_at_unchecked", since = "1.77.0")]
19711969
#[inline]
19721970
#[must_use]
@@ -2008,8 +2006,6 @@ impl<T> [T] {
20082006
/// # Examples
20092007
///
20102008
/// ```
2011-
/// #![feature(slice_split_at_unchecked)]
2012-
///
20132009
/// let mut v = [1, 0, 3, 0, 5, 6];
20142010
/// // scoped to restrict the lifetime of the borrows
20152011
/// unsafe {
@@ -2021,7 +2017,7 @@ impl<T> [T] {
20212017
/// }
20222018
/// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
20232019
/// ```
2024-
#[unstable(feature = "slice_split_at_unchecked", reason = "new API", issue = "76014")]
2020+
#[stable(feature = "slice_split_at_unchecked", since = "CURRENT_RUSTC_VERSION")]
20252021
#[rustc_const_unstable(feature = "const_slice_split_at_mut", issue = "101804")]
20262022
#[inline]
20272023
#[must_use]

0 commit comments

Comments
 (0)