diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-09-27 14:23:45 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2017-11-26 16:12:42 +0200 |
| commit | bdb72edb5c431f2a122e8463e3de6d8415153028 (patch) | |
| tree | 836c2a6961ed73e64b708b6b2544b653e4e2f1d5 /src/rustllvm/RustWrapper.cpp | |
| parent | c48650ec25d2e7e872912137e68496248743f1fe (diff) | |
| download | rust-bdb72edb5c431f2a122e8463e3de6d8415153028.tar.gz rust-bdb72edb5c431f2a122e8463e3de6d8415153028.zip | |
make accesses to fields of packed structs unsafe
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
