rust/library/core
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
..
benches Rename integer log* methods to ilog* 2022-08-09 10:20:49 -07:00
primitive_docs
src Rollup merge of #100819 - WaffleLapkin:use_ptr_byte_methods, r=scottmcm 2022-08-29 16:49:43 +05:30
tests Rollup merge of #100819 - WaffleLapkin:use_ptr_byte_methods, r=scottmcm 2022-08-29 16:49:43 +05:30
Cargo.toml