diff options
| author | bors <bors@rust-lang.org> | 2014-05-05 16:51:30 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-05 16:51:30 -0700 |
| commit | bd3fb81e5e7cd19fe3a2812efffc750007d43852 (patch) | |
| tree | f37362d5d982408e05b5167163c88da33bbb098d /src/rustllvm/PassWrapper.cpp | |
| parent | 7583544fb541b9822dd658e5bf7aae1233cb5794 (diff) | |
| parent | edd9bad4eeb1367464e190d63113600fca0ef25a (diff) | |
| download | rust-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/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
