mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user