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 Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
common_traits.rs Change InferCtxtBuilder from enter to build 2022-10-07 07:10:40 -05:00
consts.rs ConstBlocks are poly if their substs are poly 2023-01-16 20:09:31 +00:00
errors.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
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 stricter alignment enforcement for ScalarPair and Vector 2022-11-28 15:09:56 +01:00
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 Rewrite representability 2022-10-07 09:33:46 -05:00
structural_match.rs Move has_structural_eq_impls provider to rustc_ty_utils 2022-12-08 05:16:48 +00:00
ty.rs fix: use LocalDefId instead of HirId in trait res 2023-01-23 11:42:18 +00:00