rust/tests/ui/layout
Matthias Krüger 9b40bd70de
Rollup merge of #135552 - amy-kwan:amy-kwan/reprc-struct-diagnostic-power-alignment, r=workingjubilee
[AIX] Lint on structs that have a different alignment in AIX's C ABI

This PR adds a linting diagnostic on AIX for repr(C) structs that are required to follow
the power alignment rule. A repr(C) struct needs to follow the power alignment rule if
the struct:
- Has a floating-point data type (greater than 4-bytes) as its first member, or
- The first member of the struct is an aggregate, whose recursively first member is a
   floating-point data type (greater than 4-bytes).

The power alignment rule for eligible structs is currently unimplemented, so a linting
diagnostic is produced when such a struct is encountered.
2025-01-23 09:49:19 +01:00
..
aggregate-lang Remove #[cfg(test)] related stubs 2024-11-22 21:07:02 -05:00
base-layout-is-sized-ice-123078.rs Consider more erroneous layouts as LayoutError::ReferencesError to suppress spurious errors 2025-01-14 19:07:37 +00:00
base-layout-is-sized-ice-123078.stderr Consider more erroneous layouts as LayoutError::ReferencesError to suppress spurious errors 2025-01-14 19:07:37 +00:00
big-type-no-err.rs
cannot-transmute-unnormalizable-type.rs
cannot-transmute-unnormalizable-type.stderr
debug.rs adjust UI tests 2025-01-10 02:22:57 +01:00
debug.stderr Consider more erroneous layouts as LayoutError::ReferencesError to suppress spurious errors 2025-01-14 19:07:37 +00:00
enum-scalar-pair-int-ptr.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
enum-scalar-pair-int-ptr.stderr
enum.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
enum.stderr
failed-to-get-layout-for-type-error-ice-92979.rs
failed-to-get-layout-for-type-error-ice-92979.stderr
hexagon-enum.rs adjust UI tests 2025-01-10 02:22:57 +01:00
hexagon-enum.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
homogeneous-aggr-transparent.rs
homogeneous-aggr-transparent.stderr
homogeneous-aggr-zero-sized-c-struct.rs
homogeneous-aggr-zero-sized-c-struct.stderr
homogeneous-aggr-zero-sized-repr-rust.rs
homogeneous-aggr-zero-sized-repr-rust.stderr
ice-non-last-unsized-field-issue-121473.rs
ice-non-last-unsized-field-issue-121473.stderr
ice-type-error-in-tail-124031.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
ice-type-error-in-tail-124031.stderr
invalid-unsized-const-eval.rs
invalid-unsized-const-eval.stderr
invalid-unsized-const-prop.rs
invalid-unsized-in-always-sized-tail.rs
invalid-unsized-in-always-sized-tail.stderr
issue-60431-unsized-tail-behind-projection.rs
issue-84108.rs
issue-84108.stderr
issue-96158-scalarpair-payload-might-be-uninit.rs adjust UI tests 2025-01-10 02:22:57 +01:00
issue-96158-scalarpair-payload-might-be-uninit.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
issue-96185-overaligned-enum.rs adjust UI tests 2025-01-10 02:22:57 +01:00
issue-96185-overaligned-enum.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
issue-112048-unsizing-field-order.rs
issue-112048-unsizing-niche.rs
issue-113941.rs
issue-unsized-tail-restatic-ice-122488.rs
issue-unsized-tail-restatic-ice-122488.stderr
layout-cycle.rs
layout-cycle.stderr
malformed-unsized-type-in-union.rs
malformed-unsized-type-in-union.stderr
post-mono-layout-cycle-2.rs Stabilize async closures 2024-12-13 00:04:56 +00:00
post-mono-layout-cycle-2.stderr Stabilize async closures 2024-12-13 00:04:56 +00:00
post-mono-layout-cycle.rs
post-mono-layout-cycle.stderr
randomize.rs test that coercions still work under randomization 2025-01-10 02:22:57 +01:00
reprc-power-alignment.rs [AIX] Lint on structs that have a different alignment in AIX's C ABI 2025-01-22 12:06:16 -05:00
reprc-power-alignment.stderr [AIX] Lint on structs that have a different alignment in AIX's C ABI 2025-01-22 12:06:16 -05:00
rust-call-abi-not-a-tuple-ice-81974.rs
rust-call-abi-not-a-tuple-ice-81974.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00
size-of-val-raw-too-big.rs
size-of-val-raw-too-big.stderr
struct.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
struct.stderr
thaw-transmute-invalid-enum.rs
thaw-transmute-invalid-enum.stderr
thaw-validate-invalid-enum.rs
thaw-validate-invalid-enum.stderr
thin-meta-implies-thin-ptr.rs
thumb-enum.rs adjust UI tests 2025-01-10 02:22:57 +01:00
thumb-enum.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
too-big-with-padding.rs
too-big-with-padding.stderr
transmute-to-tail-with-err.rs
transmute-to-tail-with-err.stderr
trivial-bounds-sized.rs
unsafe-cell-hides-niche.rs
unsatisfiable-sized-ungated.rs
valid_range_oob.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
valid_range_oob.stderr Properly note when query stack is being cut off 2025-01-16 19:12:22 +00:00
zero-sized-array-enum-niche.rs adjust UI tests 2025-01-10 02:22:57 +01:00
zero-sized-array-enum-niche.stderr adjust UI tests 2025-01-10 02:22:57 +01:00
zero-sized-array-union.rs
zero-sized-array-union.stderr