Skip to content

Commit cda566e

Browse files
committed
Add #[inline] to copy_from_slice
1 parent ce55b20 commit cda566e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -3703,6 +3703,7 @@ impl<T> [T] {
37033703
/// [`clone_from_slice`]: slice::clone_from_slice
37043704
/// [`split_at_mut`]: slice::split_at_mut
37053705
#[doc(alias = "memcpy")]
3706+
#[inline]
37063707
#[stable(feature = "copy_from_slice", since = "1.9.0")]
37073708
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
37083709
#[track_caller]

0 commit comments

Comments
 (0)