summary refs log tree commit diff
path: root/src/test/run-pass/packed-struct-optimized-enum.rs
AgeCommit message (Collapse)AuthorLines
2017-12-20rustc: do not raise the alignment of optimized enums to the niche's alignment.Eduard-Mihai Burtescu-2/+11
2017-12-18rustc: ensure optimized enums have a properly aligned size.Eduard-Mihai Burtescu-3/+10
2017-11-26make accesses to fields of packed structs unsafeAriel Ben-Yehuda-2/+6
To handle packed structs with destructors (which you'll think are a rare case, but the `#[repr(packed)] struct Packed<T>(T);` pattern is ever-popular, which requires handling packed structs with destructors to avoid monomorphization-time errors), drops of subfields of packed structs should drop a local move of the field instead of the original one. cc #27060 - this should deal with that issue after codegen of drop glue is updated. The new errors need to be changed to future-compatibility warnings, but I'll rather do a crater run first with them as errors to assess the impact.
2017-11-19rustc: represent the discriminant as a field for ↵Eduard-Mihai Burtescu-0/+25
Layout::{Raw,StructWrapped}NullablePointer.