From cda566e22685414bc186468895cd1d9c1c08cf8d Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Sat, 11 Jan 2025 18:00:44 -0500 Subject: [PATCH] Add #[inline] to copy_from_slice --- library/core/src/slice/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 8939e5072ba32..5a22110880cc5 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3703,6 +3703,7 @@ impl [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]