about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-05 16:51:30 -0700
committerbors <bors@rust-lang.org>2014-05-05 16:51:30 -0700
commitbd3fb81e5e7cd19fe3a2812efffc750007d43852 (patch)
treef37362d5d982408e05b5167163c88da33bbb098d /src/rustllvm/RustWrapper.cpp
parent7583544fb541b9822dd658e5bf7aae1233cb5794 (diff)
parentedd9bad4eeb1367464e190d63113600fca0ef25a (diff)
downloadrust-bd3fb81e5e7cd19fe3a2812efffc750007d43852.tar.gz
rust-bd3fb81e5e7cd19fe3a2812efffc750007d43852.zip
auto merge of #13934 : huonw/rust/transmute-mut, r=alexcrichton
Turning a `&T` into an `&mut T` is undefined behaviour, and needs to be
done very very carefully. Providing a convenience function for exactly
this task is a bad idea, just tempting people into doing the wrong
thing.

(The right thing is to use types like `Cell`, `RefCell` or `Unsafe`.)

cc https://github.com/mozilla/rust/issues/13933
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions