rust/library/alloc
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 Optimized vec::IntoIter::next_chunk impl 2022-07-26 20:31:43 +02:00
src Rollup merge of #100819 - WaffleLapkin:use_ptr_byte_methods, r=scottmcm 2022-08-29 16:49:43 +05:30
tests Rollup merge of #100820 - WaffleLapkin:use_ptr_is_aligned_methods, r=scottmcm 2022-08-22 20:34:15 +05:30
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00