rust/library/core/src/ptr
Dylan DPC 395ce34a95
Rollup merge of #100819 - WaffleLapkin:use_ptr_byte_methods, r=scottmcm
Make use of `[wrapping_]byte_{add,sub}`

These new methods trivially replace old `.cast().wrapping_offset().cast()` & similar code.
Note that [`arith_offset`](https://doc.rust-lang.org/std/intrinsics/fn.arith_offset.html) and `wrapping_offset` are the same thing.

r? ``@scottmcm``

_split off from #100746_
2022-08-29 16:49:43 +05:30
..
const_ptr.rs Rollup merge of #100819 - WaffleLapkin:use_ptr_byte_methods, r=scottmcm 2022-08-29 16:49:43 +05:30
metadata.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
mod.rs nicer Miri backtraces for from_exposed_addr 2022-08-13 12:55:43 -04:00
mut_ptr.rs Rollup merge of #100819 - WaffleLapkin:use_ptr_byte_methods, r=scottmcm 2022-08-29 16:49:43 +05:30
non_null.rs Rollup merge of #94640 - Pointerbender:issue-71146-partial-stabilization, r=yaahc 2022-05-28 08:45:50 +02:00
unique.rs Implement core::ptr::Unique on top of NonNull 2022-04-14 19:35:40 +02:00