about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2017-09-27 14:23:45 +0300
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2017-11-26 16:12:42 +0200
commitbdb72edb5c431f2a122e8463e3de6d8415153028 (patch)
tree836c2a6961ed73e64b708b6b2544b653e4e2f1d5 /src/rustllvm/RustWrapper.cpp
parentc48650ec25d2e7e872912137e68496248743f1fe (diff)
downloadrust-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