From 541ef7d7c5add9b2e5d929175be46e71dcfda992 Mon Sep 17 00:00:00 2001 From: pascal Date: Fri, 31 Oct 2025 21:45:51 +0100 Subject: [PATCH] add inline to copy_within --- 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 0248688733952..0cde803ae6136 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -3906,6 +3906,7 @@ impl [T] { /// /// assert_eq!(&bytes, b"Hello, Wello!"); /// ``` + #[inline] #[stable(feature = "copy_within", since = "1.37.0")] #[track_caller] pub fn copy_within>(&mut self, src: R, dest: usize)