]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung
authorkennytm <kennytm@gmail.com>
Tue, 21 Aug 2018 14:05:30 +0000 (22:05 +0800)
committerkennytm <kennytm@gmail.com>
Tue, 21 Aug 2018 14:05:30 +0000 (22:05 +0800)
commit0dd88c97975b2a2e4ea3e4a2bdc3670a9f40bd67
tree0ad62b121fcafe2d11ee95819caf64e975d4ad00
parent9bbab65ebefbeb512445a759603b03f858e5e9b9
parent993fb934640b7e514f3c629c33a2698a83ed8c3e
Rollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung

Replace usages of ptr::offset with ptr::{add,sub}.

Rust provides these helper methods – so let's use them!
src/liballoc/boxed.rs
src/liballoc/raw_vec.rs
src/libcore/marker.rs
src/libcore/ptr.rs
src/libcore/slice/mod.rs