From a5b89a00cb2871719868cbca5af14e6cf185060a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 2 Jan 2021 16:58:38 +0100 Subject: [PATCH] extend comment Co-authored-by: lcnr --- library/core/src/ptr/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/ptr/mod.rs b/library/core/src/ptr/mod.rs index 8fe10099bb988..d2e1bac58f402 100644 --- a/library/core/src/ptr/mod.rs +++ b/library/core/src/ptr/mod.rs @@ -883,7 +883,8 @@ pub const unsafe fn read_unaligned(src: *const T) -> T { #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub unsafe fn write(dst: *mut T, src: T) { - // We are calling the intrinsics directly to avoid function calls in the generated code. + // We are calling the intrinsics directly to avoid function calls in the generated code + // as `intrinsics::copy_nonoverlapping` is a wrapper function. extern "rust-intrinsic" { fn copy_nonoverlapping(src: *const T, dst: *mut T, count: usize); }