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 transmute size check: properly account for alignment 2024-05-30 10:06:28 +02:00
big-type-no-err.rs
cannot-transmute-unnormalizable-type.rs
cannot-transmute-unnormalizable-type.stderr
debug.rs layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
debug.stderr layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
enum-scalar-pair-int-ptr.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
enum-scalar-pair-int-ptr.stderr
enum.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10: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
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 Fix ICE when ADT tail has type error 2024-04-22 09:12:36 +05:30
ice-type-error-in-tail-124031.stderr Fix ICE when ADT tail has type error 2024-04-22 09:12:36 +05:30
invalid-unsized-const-eval.rs layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
invalid-unsized-const-eval.stderr layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
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 Allow type_of to return partially non-error types if the type was already tainted 2024-05-28 11:55:20 +00:00
issue-84108.stderr Allow type_of to return partially non-error types if the type was already tainted 2024-05-28 11:55:20 +00:00
issue-96158-scalarpair-payload-might-be-uninit.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
issue-96158-scalarpair-payload-might-be-uninit.stderr
issue-96185-overaligned-enum.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
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: for length 0 this is safe to call 2024-07-10 18:01:06 +02:00
size-of-val-raw-too-big.stderr size_of_val_raw: for length 0 this is safe to call 2024-07-10 18:01:06 +02:00
struct.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
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 layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
unsafe-cell-hides-niche.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
unsatisfiable-sized-ungated.rs layout computation: eagerly error for unexpected unsized fields 2024-09-16 15:53:21 +02:00
valid_range_oob.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
valid_range_oob.stderr
zero-sized-array-enum-niche.rs Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
zero-sized-array-enum-niche.stderr Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
zero-sized-array-union.rs
zero-sized-array-union.stderr