Skip to content

Commit 0741a54

Browse files
RalfJunggitbot
authored and
gitbot
committed
remove some unnecessary rustc_const_unstable
1 parent c7caf81 commit 0741a54

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

core/src/mem/maybe_uninit.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,6 @@ impl<T> MaybeUninit<T> {
10411041

10421042
/// Deprecated version of [`slice::assume_init_ref`].
10431043
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
1044-
#[rustc_const_unstable(feature = "maybe_uninit_slice", issue = "63569")]
10451044
#[deprecated(
10461045
note = "replaced by inherent assume_init_ref method; will eventually be removed",
10471046
since = "1.83.0"
@@ -1053,7 +1052,6 @@ impl<T> MaybeUninit<T> {
10531052

10541053
/// Deprecated version of [`slice::assume_init_mut`].
10551054
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
1056-
#[rustc_const_unstable(feature = "maybe_uninit_slice", issue = "63569")]
10571055
#[deprecated(
10581056
note = "replaced by inherent assume_init_mut method; will eventually be removed",
10591057
since = "1.83.0"
@@ -1326,7 +1324,6 @@ impl<T> [MaybeUninit<T>] {
13261324
///
13271325
/// [`write_clone_of_slice`]: slice::write_clone_of_slice
13281326
#[unstable(feature = "maybe_uninit_write_slice", issue = "79995")]
1329-
#[rustc_const_unstable(feature = "maybe_uninit_write_slice", issue = "79995")]
13301327
pub const fn write_copy_of_slice(&mut self, src: &[T]) -> &mut [T]
13311328
where
13321329
T: Copy,

core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ impl<T> [T] {
956956
/// [`swap`]: slice::swap
957957
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
958958
#[unstable(feature = "slice_swap_unchecked", issue = "88539")]
959-
#[rustc_const_unstable(feature = "slice_swap_unchecked", issue = "88539")]
960959
pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize) {
961960
assert_unsafe_precondition!(
962961
check_library_ub,
@@ -3716,6 +3715,7 @@ impl<T> [T] {
37163715
#[inline]
37173716
#[stable(feature = "copy_from_slice", since = "1.9.0")]
37183717
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
3718+
#[rustc_const_stable_indirect]
37193719
#[track_caller]
37203720
pub const fn copy_from_slice(&mut self, src: &[T])
37213721
where

0 commit comments

Comments
 (0)