diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-08-29 16:49:43 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-29 16:49:43 +0530 |
| commit | 395ce34a95653d9c07e71567cf1b1070742868f3 (patch) | |
| tree | 5ecffc7c79b97dabeca8b6de0dc22130a2cdb60c /compiler/rustc_interface/src/errors.rs | |
| parent | 9f7e20ba3542d79150e33d181512494d37462400 (diff) | |
| parent | 53565b23ac21bc15be1feab9fb316fce7a73e21c (diff) | |
| download | rust-395ce34a95653d9c07e71567cf1b1070742868f3.tar.gz rust-395ce34a95653d9c07e71567cf1b1070742868f3.zip | |
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_
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
