Skip to content

Commit 860e436

Browse files
committed
Document the size_of_val instrinsic
1 parent 8493813 commit 860e436

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/intrinsics.rs

+4
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,10 @@ extern "rust-intrinsic" {
676676
pub fn min_align_of<T>() -> usize;
677677
pub fn pref_align_of<T>() -> usize;
678678

679+
/// The size of the referenced value in bytes.
680+
///
681+
/// The stabilized version of this intrinsic is
682+
/// [`std::mem::size_of_val`](../../std/mem/fn.size_of_val.html).
679683
pub fn size_of_val<T: ?Sized>(_: &T) -> usize;
680684
pub fn min_align_of_val<T: ?Sized>(_: &T) -> usize;
681685

0 commit comments

Comments
 (0)