Skip to content

Commit 27d0606

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 2544286 + 15e7df8 commit 27d0606

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/intrinsics.rs

+3
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,9 @@ 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).
675678
pub fn size_of<T>() -> usize;
676679

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

0 commit comments

Comments
 (0)