about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-05-03 01:02:45 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-05-03 08:05:29 +0530
commitd6c6bbf200590758c115e3564c341054c23ef241 (patch)
tree5b635c231df1f72ff6e477c1d387a1b5faa3539e /src/rustllvm/RustWrapper.cpp
parentac19fdc09c47f0402f840173d31955647516331b (diff)
parent38c88360510ac6d9c741d7cbc52608908fd21278 (diff)
downloadrust-d6c6bbf200590758c115e3564c341054c23ef241.tar.gz
rust-d6c6bbf200590758c115e3564c341054c23ef241.zip
Rollup merge of #33335 - cramertj:master, r=alexcrichton
docs: Changed docs for `size_of` to describe size as a stride offset

Current documentation for `std::mem::size_of` is ambiguous, and the documentation for `std::intrinsics::size_of` incorrectly defines size.

This fix re-defines size as the offset in bytes between successive instances of a type, as described in LLVM's [getTypeAllocSize](http://llvm.org/docs/doxygen/html/classllvm_1_1DataLayout.html#a1d6fcc02e91ba24510aba42660c90e29).

Fixes: #33266
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions