rust/tests/ui/layout
Lukas Markeffsky 20d2414925 get rid of an old hack
For structs that cannot be unsized, the layout algorithm sometimes moves
unsized fields to the end of the struct, which circumvented the error
for unexpected unsized fields and returned an unsized layout anyway.

This commit makes it so that the unexpected unsized error is always
returned for structs that cannot be unsized, allowing us to remove an
old hack and fixing some old ICE.
2024-09-17 00:09:21 +02:00
..
base-layout-is-sized-ice-123078.rs
base-layout-is-sized-ice-123078.stderr
big-type-no-err.rs
cannot-transmute-unnormalizable-type.rs
cannot-transmute-unnormalizable-type.stderr
debug.rs
debug.stderr
enum-scalar-pair-int-ptr.rs
enum-scalar-pair-int-ptr.stderr
enum.rs
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
hexagon-enum.stderr
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
ice-type-error-in-tail-124031.stderr
invalid-unsized-const-eval.rs
invalid-unsized-const-eval.stderr
invalid-unsized-const-prop.rs get rid of an old hack 2024-09-17 00:09:21 +02:00
invalid-unsized-in-always-sized-tail.rs get rid of an old hack 2024-09-17 00:09:21 +02:00
invalid-unsized-in-always-sized-tail.stderr get rid of an old hack 2024-09-17 00:09:21 +02:00
issue-60431-unsized-tail-behind-projection.rs
issue-84108.rs
issue-84108.stderr
issue-96158-scalarpair-payload-might-be-uninit.rs
issue-96158-scalarpair-payload-might-be-uninit.stderr
issue-96185-overaligned-enum.rs
issue-96185-overaligned-enum.stderr
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
rust-call-abi-not-a-tuple-ice-81974.rs
rust-call-abi-not-a-tuple-ice-81974.stderr
size-of-val-raw-too-big.rs
size-of-val-raw-too-big.stderr
struct.rs
struct.stderr
thin-meta-implies-thin-ptr.rs
thumb-enum.rs
thumb-enum.stderr
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
valid_range_oob.stderr
zero-sized-array-enum-niche.rs
zero-sized-array-enum-niche.stderr
zero-sized-array-union.rs
zero-sized-array-union.stderr