From 7a9c13985e5aeb9516eb586d8355bec61183b353 Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 30 May 2022 22:38:29 +0000 Subject: [PATCH 1/2] Update intrinsics.rs --- library/core/src/intrinsics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 678d00c68c5..0b76790c009 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -2287,6 +2287,7 @@ pub const unsafe fn copy(src: *const T, dst: *mut T, count: usize) { /// // Now the box is fine /// assert_eq!(*v, 42); /// ``` +#[doc(alias = "memset")] #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")] #[inline] From e565bb0326108534fab12aa9cfc7d56f2eb97aec Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 30 May 2022 22:40:34 +0000 Subject: [PATCH 2/2] Update mut_ptr.rs --- library/core/src/ptr/mut_ptr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index 37cf2ef4bfb..1aaa274a054 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -1412,6 +1412,7 @@ impl *mut T { /// See [`ptr::write_bytes`] for safety concerns and examples. /// /// [`ptr::write_bytes`]: crate::ptr::write_bytes() + #[doc(alias = "memset")] #[stable(feature = "pointer_methods", since = "1.26.0")] #[rustc_const_unstable(feature = "const_ptr_write", issue = "86302")] #[inline(always)]