rust/compiler/rustc_ty_utils/src
Matthias Krüger a8b5e5d9db
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``
2023-01-26 06:15:27 +01:00
..
abi.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
assoc.rs
common_traits.rs
consts.rs ConstBlocks are poly if their substs are poly 2023-01-16 20:09:31 +00:00
errors.rs
implied_bounds.rs fix various subst_identity vs skip_binder 2023-01-14 00:30:03 -07:00
instance.rs Rename some compare_method functions 2022-12-24 21:36:58 +00:00
layout_sanity_check.rs
layout.rs abi: add AddressSpace field to Primitive::Pointer 2023-01-22 23:41:39 -05:00
lib.rs Also remove #![feature(control_flow_enum)] where possible 2023-01-18 10:22:21 -08:00
needs_drop.rs Combine identical alias arms 2022-12-13 17:48:55 +00:00
representability.rs
structural_match.rs
ty.rs fix: use LocalDefId instead of HirId in trait res 2023-01-23 11:42:18 +00:00