about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-11-15 11:04:30 +0100
committerGitHub <noreply@github.com>2018-11-15 11:04:30 +0100
commitd7c833b7ef4e2bec35e8753dcde398828f387aaf (patch)
tree5615f22f069525d1b2ddefff91f534439a81e928 /src
parentb20bba4f3777fd097539e1f516987e0d9729d710 (diff)
parent15e7df8b519d9420ada60822ae55c202b013f6a6 (diff)
downloadrust-d7c833b7ef4e2bec35e8753dcde398828f387aaf.tar.gz
rust-d7c833b7ef4e2bec35e8753dcde398828f387aaf.zip
Rollup merge of #55507 - fhartwig:size_of_intrinsic_docs, r=frewsxcv
Add link to std::mem::size_of to size_of intrinsic documentation

The other intrinsics with safe/stable alternatives already have documentation to this effect.
Diffstat (limited to 'src')
-rw-r--r--src/libcore/intrinsics.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index 7ed6e4a8f51..14c1cea8152 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -672,6 +672,9 @@ extern "rust-intrinsic" {
     ///
     /// 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<T>() -> usize;
 
     /// Moves a value to an uninitialized memory location.