about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-21 16:54:07 +0200
committerGitHub <noreply@github.com>2022-08-21 16:54:07 +0200
commit5a9b11648ff069954b27f07e8fc7debdd013b8d8 (patch)
treef11b604569225f497c41bbf60500e7c987a2a587 /src/test/codegen/src-hash-algorithm
parentee65a1018f54669b17c97bad979edfea1accafbf (diff)
parentbd1ab724064f2bcc59ddc6157d6cae9ca344939b (diff)
downloadrust-5a9b11648ff069954b27f07e8fc7debdd013b8d8.tar.gz
rust-5a9b11648ff069954b27f07e8fc7debdd013b8d8.zip
Rollup merge of #100822 - WaffleLapkin:no_offset_question_mark, r=scottmcm
Replace most uses of `pointer::offset` with `add` and `sub`

As PR title says, it replaces `pointer::offset` in compiler and standard library with `pointer::add` and `pointer::sub`. This generally makes code cleaner, easier to grasp and removes (or, well, hides) integer casts.

This is generally trivially correct, `.offset(-constant)` is just `.sub(constant)`, `.offset(usized as isize)` is just `.add(usized)`, etc. However in some cases we need to be careful with signs of things.

r? ````@scottmcm````

_split off from #100746_
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions