rust/tests/ui/layout
bors 3cbb93223f Auto merge of #121668 - erikdesjardins:commonprim, r=scottmcm,oli-obk
Represent `Result<usize, Box<T>>` as ScalarPair(i64, ptr)

This allows types like `Result<usize, std::io::Error>` (and integers of differing sign, e.g. `Result<u64, i64>`) to be passed in a pair of registers instead of through memory, like `Result<u64, u64>` or `Result<Box<T>, Box<U>>` are today.

Fixes #97540.

r? `@ghost`
2024-03-13 15:25:35 +00:00
..
big-type-no-err.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cannot-transmute-unnormalizable-type.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
cannot-transmute-unnormalizable-type.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
debug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
debug.stderr Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
enum-scalar-pair-int-ptr.rs allow using scalarpair with a common prim of ptr/ptr-sized-int 2024-02-27 00:09:12 -05:00
enum-scalar-pair-int-ptr.stderr allow using scalarpair with a common prim of ptr/ptr-sized-int 2024-02-27 00:09:12 -05:00
enum.rs fix test failure due to differing u64 alignment on different targets 2024-02-28 18:48:14 -05:00
enum.stderr fix test failure due to differing u64 alignment on different targets 2024-02-28 18:48:14 -05:00
hexagon-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
hexagon-enum.stderr i686-windows: make requested alignment > 4 special case apply transitively 2023-07-14 17:48:13 -04:00
homogeneous-aggr-transparent.rs fix homogeneous_aggregate not ignoring some 1-ZST 2023-09-10 07:38:03 +02:00
homogeneous-aggr-transparent.stderr fix homogeneous_aggregate not ignoring some 1-ZST 2023-09-10 07:38:03 +02:00
homogeneous-aggr-zero-sized-c-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
homogeneous-aggr-zero-sized-c-struct.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
homogeneous-aggr-zero-sized-repr-rust.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
homogeneous-aggr-zero-sized-repr-rust.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-60431-unsized-tail-behind-projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-84108.rs Check that return type is WF in typeck 2024-03-06 16:51:17 +05:30
issue-84108.stderr Check that return type is WF in typeck 2024-03-06 16:51:17 +05:30
issue-96158-scalarpair-payload-might-be-uninit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-96158-scalarpair-payload-might-be-uninit.stderr i686-windows: make requested alignment > 4 special case apply transitively 2023-07-14 17:48:13 -04:00
issue-96185-overaligned-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-96185-overaligned-enum.stderr i686-windows: make requested alignment > 4 special case apply transitively 2023-07-14 17:48:13 -04:00
issue-112048-unsizing-field-order.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-112048-unsizing-niche.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-113941.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
layout-cycle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
layout-cycle.stderr Don't ICE on layout computation failure 2023-08-28 12:40:39 -07:00
malformed-unsized-type-in-union.rs Don't attempt to compute layout of type referencing error 2023-07-27 18:24:08 +00:00
malformed-unsized-type-in-union.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
struct.stderr rustc_abi: audit uses of is_zst; fix a case of giving an enum insufficient alignment 2023-08-29 08:58:58 +02:00
thin-meta-implies-thin-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thumb-enum.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thumb-enum.stderr i686-windows: make requested alignment > 4 special case apply transitively 2023-07-14 17:48:13 -04:00
too-big-with-padding.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
too-big-with-padding.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
transmute-to-tail-with-err.rs Layout of &dyn Trait<[type error]> is still wide 2023-03-13 21:35:20 +00:00
transmute-to-tail-with-err.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unsafe-cell-hides-niche.rs Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
valid_range_oob.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
valid_range_oob.stderr Change default panic handler message format. 2023-07-29 11:42:50 +02:00
zero-sized-array-enum-niche.rs Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
zero-sized-array-enum-niche.stderr Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
zero-sized-array-union.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
zero-sized-array-union.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00