about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-02-13 20:31:09 +0100
committerHuon Wilson <dbau.pp+github@gmail.com>2015-02-14 11:32:42 +1100
commit7a52932f4cd65f57bcc8d77f12e32066b2a9c432 (patch)
tree383cdfcd296f2d0eb92f59fbfbfe3048d14b425c /src/rustllvm/RustWrapper.cpp
parent5e3ae102dbeeb646e8c7d2d423cea263337a76af (diff)
downloadrust-7a52932f4cd65f57bcc8d77f12e32066b2a9c432.tar.gz
rust-7a52932f4cd65f57bcc8d77f12e32066b2a9c432.zip
Make std::raw::Repr an unsafe trait
The default implementation of .repr() will call conveniently call
transmute_copy which should be appropriate for all implementors, but is
memory unsafe if used wrong.

Fixes #22260

You need to use `unsafe impl` to implement the Repr trait now.

[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions