about summary refs log tree commit diff
path: root/src/test/run-pass/dst-field-align.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-75/+0
2017-02-09removed unused structOliver Schneider-6/+0
2017-02-09remove wrong packed struct testOliver Schneider-6/+0
2015-12-08Fix unsized structs with destructorsJames Miller-1/+17
The presence of the drop flag caused the offset calculation to be incorrect, leading to the pointer being incorrect. This has been fixed by calculating the offset based on the field index (and not assuming that the field is always the last one). However, I've also stopped the drop flag from being added to the end of unsized structs to begin with. Since it's not actually accessed for unsized structs, and isn't actually where we would say it is, this made more sense.
2015-12-08Align pointers to DST fields properlyJames Miller-0/+71
DST fields, being of an unknown type, are not automatically aligned properly, so a pointer to the field needs to be aligned using the information in the vtable. Fixes #26403 and a number of other DST-related bugs discovered while implementing this.