Skip to content

Commit 52deb6b

Browse files
committed
Add link to std::mem::size_of to size_of intrinsic documentation
1 parent e8aef7c commit 52deb6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/intrinsics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ extern "rust-intrinsic" {
672672
///
673673
/// More specifically, this is the offset in bytes between successive
674674
/// items of the same type, including alignment padding.
675+
///
676+
/// The stabilized version of this intrinsic is
677+
/// [`std::mem::size_of`](../../std/mem/fn.size_of.html).
678+
675679
pub fn size_of<T>() -> usize;
676680

677681
/// Moves a value to an uninitialized memory location.

0 commit comments

Comments
 (0)