Rollup merge of #138098 - okaneco:stabilize_const_copy_from_slice, r=tgross35

Stabilize feature `const_copy_from_slice`

Stabilizes `copy_from_slice` method on `[T]`

FCP completed https://github.com/rust-lang/rust/issues/131415#issuecomment-2703694727
Closes #131415
This commit is contained in:
Michael Goulet
2025-03-06 15:40:08 -05:00
committed by GitHub
+1 -2
View File
@@ -3732,8 +3732,7 @@ pub fn clone_from_slice(&mut self, src: &[T])
#[doc(alias = "memcpy")]
#[inline]
#[stable(feature = "copy_from_slice", since = "1.9.0")]
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
#[rustc_const_stable_indirect]
#[rustc_const_stable(feature = "const_copy_from_slice", since = "CURRENT_RUSTC_VERSION")]
#[track_caller]
pub const fn copy_from_slice(&mut self, src: &[T])
where