about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-11-03 15:27:18 +0900
committerGitHub <noreply@github.com>2020-11-03 15:27:18 +0900
commit9d4cdbbfcd899a7446b13da98fcac9ab81e69740 (patch)
tree8e445ff71cdfac1af8897d541e2532eb945456db
parent8894c903cb02f8abde4d2d2b288320bc0930b8f9 (diff)
parentc83c6357512f809a92556f9198314d87a5d3a965 (diff)
downloadrust-9d4cdbbfcd899a7446b13da98fcac9ab81e69740.tar.gz
rust-9d4cdbbfcd899a7446b13da98fcac9ab81e69740.zip
Rollup merge of #78664 - pickfire:patch-4, r=jonas-schievink
Fix intrinsic size_of stable link

I noticed that it is pointing to the same link when I was reading
https://github.com/rust-lang/rust-clippy/issues/2997
-rw-r--r--library/core/src/intrinsics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs
index dbc7921a62a..3e5d7caa2fe 100644
--- a/library/core/src/intrinsics.rs
+++ b/library/core/src/intrinsics.rs
@@ -764,7 +764,7 @@ 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 [`size_of`].
+    /// The stabilized version of this intrinsic is [`crate::mem::size_of`].
     #[rustc_const_stable(feature = "const_size_of", since = "1.40.0")]
     pub fn size_of<T>() -> usize;