Skip to content

Commit 053197e

Browse files
committed
Stabilize const_copy_from_slice feature
Stabilizes `copy_from_slice` method on `[T]`
1 parent bb10e81 commit 053197e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: core/src/slice/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3732,8 +3732,7 @@ impl<T> [T] {
37323732
#[doc(alias = "memcpy")]
37333733
#[inline]
37343734
#[stable(feature = "copy_from_slice", since = "1.9.0")]
3735-
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
3736-
#[rustc_const_stable_indirect]
3735+
#[rustc_const_stable(feature = "const_copy_from_slice", since = "CURRENT_RUSTC_VERSION")]
37373736
#[track_caller]
37383737
pub const fn copy_from_slice(&mut self, src: &[T])
37393738
where

0 commit comments

Comments
 (0)