about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-01 17:32:34 +0000
committerbors <bors@rust-lang.org>2017-10-01 17:32:34 +0000
commitcef4a3ebfaa7809d6ab8d8578b14160a83215321 (patch)
tree3cb22c89d3b057fbddd8fedb1413fdd7d088bb60 /src/test/run-pass/thinlto
parent3651cddc441716ffa8aa4d1c771e26dab7f56216 (diff)
parent0ece48e2113cd8de4a8bce66eecdd081872ce56e (diff)
downloadrust-cef4a3ebfaa7809d6ab8d8578b14160a83215321.tar.gz
rust-cef4a3ebfaa7809d6ab8d8578b14160a83215321.zip
Auto merge of #44897 - Havvy:doc-size_of, r=steveklabnik
Docs for size_of::<#[repr(C)]> items.

Most of this info comes from camlorn's blog post on optimizing struct layout and the Rustonomicon.

I don't really like my wording in the first paragraph.

I also cannot find a definition of what `#[repr(C)]` does for enums that have variants with fields. They're allowed, unlike `#[repr(C)] enum`s with no variants.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions