Skip to content

Commit

Permalink
Rollup merge of rust-lang#78664 - pickfire:patch-4, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix intrinsic size_of stable link

I noticed that it is pointing to the same link when I was reading
rust-lang/rust-clippy#2997
  • Loading branch information
JohnTitor authored Nov 3, 2020
2 parents 8894c90 + c83c635 commit 9d4cdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9d4cdbb

Please sign in to comment.