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.
This commit is contained in:
Pietro Albini 2018-11-15 11:04:30 +01:00 committed by GitHub
commit d7c833b7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,6 +672,9 @@
///
/// 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.