From 52deb6b45484b595613dfe7199a81706706f3fb7 Mon Sep 17 00:00:00 2001 From: Florian Hartwig Date: Tue, 30 Oct 2018 16:13:42 +0100 Subject: [PATCH 1/2] Add link to std::mem::size_of to size_of intrinsic documentation --- src/libcore/intrinsics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index cceae9249e4..fe2afc59be8 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -672,6 +672,10 @@ /// /// More specifically, this is the offset in bytes between successive /// items of the same type, including alignment padding. + /// + /// The stabilized version of this intrinsic is + /// [`std::mem::size_of`](../../std/mem/fn.size_of.html). + pub fn size_of() -> usize; /// Moves a value to an uninitialized memory location. From 15e7df8b519d9420ada60822ae55c202b013f6a6 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Tue, 13 Nov 2018 21:34:44 -0500 Subject: [PATCH 2/2] Remove unneeded newline. --- src/libcore/intrinsics.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index fe2afc59be8..99a7beb58f5 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -675,7 +675,6 @@ /// /// The stabilized version of this intrinsic is /// [`std::mem::size_of`](../../std/mem/fn.size_of.html). - pub fn size_of() -> usize; /// Moves a value to an uninitialized memory location.