about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-29 16:49:43 +0530
committerGitHub <noreply@github.com>2022-08-29 16:49:43 +0530
commit395ce34a95653d9c07e71567cf1b1070742868f3 (patch)
tree5ecffc7c79b97dabeca8b6de0dc22130a2cdb60c /compiler/rustc_interface/src/errors.rs
parent9f7e20ba3542d79150e33d181512494d37462400 (diff)
parent53565b23ac21bc15be1feab9fb316fce7a73e21c (diff)
downloadrust-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