summary refs log tree commit diff
path: root/src/test/run-pass/align-struct.rs
AgeCommit message (Collapse)AuthorLines
2017-04-21Added feature gate, updated error messages and tests.Cameron Hart-0/+1
2017-04-21Implementation of repr struct alignment RFC 1358.Cameron Hart-0/+195
The main changes around rustc::ty::Layout::struct and rustc_trans:adt: * Added primitive_align field which stores alignment before repr align * Always emit field padding when generating the LLVM struct fields * Added methods for adjusting field indexes from the layout index to the LLVM struct field index The main user of this information is rustc_trans::adt::struct_llfields which determines the LLVM fields to be used by LLVM, including padding fields.