remove some unnecessary rustc_const_unstable
This commit is contained in:
parent
e0be1a0262
commit
68543abb45
@ -1041,7 +1041,6 @@ impl<T> MaybeUninit<T> {
|
|||||||
|
|
||||||
/// Deprecated version of [`slice::assume_init_ref`].
|
/// Deprecated version of [`slice::assume_init_ref`].
|
||||||
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
|
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
|
||||||
#[rustc_const_unstable(feature = "maybe_uninit_slice", issue = "63569")]
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
note = "replaced by inherent assume_init_ref method; will eventually be removed",
|
note = "replaced by inherent assume_init_ref method; will eventually be removed",
|
||||||
since = "1.83.0"
|
since = "1.83.0"
|
||||||
@ -1053,7 +1052,6 @@ impl<T> MaybeUninit<T> {
|
|||||||
|
|
||||||
/// Deprecated version of [`slice::assume_init_mut`].
|
/// Deprecated version of [`slice::assume_init_mut`].
|
||||||
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
|
#[unstable(feature = "maybe_uninit_slice", issue = "63569")]
|
||||||
#[rustc_const_unstable(feature = "maybe_uninit_slice", issue = "63569")]
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
note = "replaced by inherent assume_init_mut method; will eventually be removed",
|
note = "replaced by inherent assume_init_mut method; will eventually be removed",
|
||||||
since = "1.83.0"
|
since = "1.83.0"
|
||||||
@ -1326,7 +1324,6 @@ impl<T> [MaybeUninit<T>] {
|
|||||||
///
|
///
|
||||||
/// [`write_clone_of_slice`]: slice::write_clone_of_slice
|
/// [`write_clone_of_slice`]: slice::write_clone_of_slice
|
||||||
#[unstable(feature = "maybe_uninit_write_slice", issue = "79995")]
|
#[unstable(feature = "maybe_uninit_write_slice", issue = "79995")]
|
||||||
#[rustc_const_unstable(feature = "maybe_uninit_write_slice", issue = "79995")]
|
|
||||||
pub const fn write_copy_of_slice(&mut self, src: &[T]) -> &mut [T]
|
pub const fn write_copy_of_slice(&mut self, src: &[T]) -> &mut [T]
|
||||||
where
|
where
|
||||||
T: Copy,
|
T: Copy,
|
||||||
|
@ -956,7 +956,6 @@ impl<T> [T] {
|
|||||||
/// [`swap`]: slice::swap
|
/// [`swap`]: slice::swap
|
||||||
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
||||||
#[unstable(feature = "slice_swap_unchecked", issue = "88539")]
|
#[unstable(feature = "slice_swap_unchecked", issue = "88539")]
|
||||||
#[rustc_const_unstable(feature = "slice_swap_unchecked", issue = "88539")]
|
|
||||||
pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize) {
|
pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize) {
|
||||||
assert_unsafe_precondition!(
|
assert_unsafe_precondition!(
|
||||||
check_library_ub,
|
check_library_ub,
|
||||||
@ -3716,6 +3715,7 @@ impl<T> [T] {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "copy_from_slice", since = "1.9.0")]
|
#[stable(feature = "copy_from_slice", since = "1.9.0")]
|
||||||
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
|
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
|
||||||
|
#[rustc_const_stable_indirect]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub const fn copy_from_slice(&mut self, src: &[T])
|
pub const fn copy_from_slice(&mut self, src: &[T])
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user