Skip to content

Commit

Permalink
Add #[inline] to copy_from_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Jan 11, 2025
1 parent ce55b20 commit cda566e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
@@ -3703,6 +3703,7 @@ impl<T> [T] {
/// [`clone_from_slice`]: slice::clone_from_slice
/// [`split_at_mut`]: slice::split_at_mut
#[doc(alias = "memcpy")]
#[inline]
#[stable(feature = "copy_from_slice", since = "1.9.0")]
#[rustc_const_unstable(feature = "const_copy_from_slice", issue = "131415")]
#[track_caller]

0 comments on commit cda566e

Please sign in to comment.