From: kennytm Date: Fri, 20 Jul 2018 18:59:04 +0000 (+0800) Subject: Rollup merge of #52502 - RalfJung:rotate, r=scottmcm X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c74ff6cbd45ee79d623a6e1ad936d851c34fffc8;p=rust.git 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) --- c74ff6cbd45ee79d623a6e1ad936d851c34fffc8