]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107248 - erikdesjardins:addrspace, r=oli-obk
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 26 Jan 2023 05:15:27 +0000 (06:15 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Jan 2023 05:15:27 +0000 (06:15 +0100)
commita8b5e5d9dba8a8dce32c89882c40e28de2134cc5
treec41b4d5e0f7a7ac2cc266eec9a1ad4bdb555241c
parenta8e8406e609972350f9fd10189895d3e8e341cd9
parentadc18904483fbd9df409291da4c4e299c8b6cb3e
Rollup merge of #107248 - erikdesjardins:addrspace, r=oli-obk

abi: add AddressSpace field to Primitive::Pointer

...and remove it from `PointeeInfo`, which isn't meant for this.

There are still various places (marked with FIXMEs) that assume all pointers
have the same size and alignment. Fixing this requires parsing non-default
address spaces in the data layout string (and various other changes),
which will be done in a followup.
(That is, if it's actually worth it to support multiple different pointer sizes.
There is a lot of code that would be affected by that.)

Fixes #106367

r? ``@oli-obk``
cc ``@Patryk27``