about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-07-21 02:59:04 +0800
committerkennytm <kennytm@gmail.com>2018-07-21 04:08:05 +0800
commitc74ff6cbd45ee79d623a6e1ad936d851c34fffc8 (patch)
tree85b6e91f265435ee01916b0e5ba6ba4f8d002298 /src/rustllvm/RustWrapper.cpp
parent509cbf3e8ecf1cf92b7051fa54e9360ad7b7449f (diff)
parent16c057256f68b39df70737838f367cf645d6e0c7 (diff)
downloadrust-c74ff6cbd45ee79d623a6e1ad936d851c34fffc8.tar.gz
rust-c74ff6cbd45ee79d623a6e1ad936d851c34fffc8.zip
Rollup merge of #52502 - RalfJung:rotate, r=scottmcm
fix unsafety: don't call ptr_rotate for ZST

`rotate::ptr_rotate` has a comment saying
```
/// # Safety
///
/// The specified range must be valid for reading and writing.
/// The type `T` must have non-zero size.
```
So we better make sure we don't call it on ZST...

Cc @scottmcm (author of https://github.com/rust-lang/rust/pull/41670)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions