about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-12-21 09:39:45 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-12-21 14:00:17 -0800
commitcb3826d9adcb185fbf438602e82ae99ff1878779 (patch)
treee76bf3242b13d29bf488a2acdeabd4df9172d91c /src/rustllvm/RustWrapper.cpp
parente2834a20e7c5bbfb1502f582545153dc6b25a70c (diff)
downloadrust-cb3826d9adcb185fbf438602e82ae99ff1878779.tar.gz
rust-cb3826d9adcb185fbf438602e82ae99ff1878779.zip
std: Ensure AssertRecoverSafe indeed is more often
Types like `&AssertRecoverSafe<T>` and `Rc<AssertRecoverSafe<T>>` were
mistakenly not considered recover safe, but the point of the assertion wrapper
is that it indeed is! This was caused by an interaction between the
`RecoverSafe` and `NoUnsafeCell` marker traits, and this is updated by adding an
impl of the `NoUnsafeCell` marker trait for `AssertRecoverSafe` to ensure that
it never interacts with the other negative impls of `RecoverSafe`.

cc #30510
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions