rust/compiler
bors 6330daade9 Auto merge of #112062 - lukas-code:unsized-layout, r=wesleywiser
Make struct layout not depend on unsizeable tail

fixes (after backport) https://github.com/rust-lang/rust/issues/112048

Since unsizing `Ptr<Foo<T>>` -> `Ptr<Foo<U>` just copies the pointer and adds the metadata, the layout of `Foo` must not depend on niches in and alignment of the tail `T`.

Nominating for beta 1.71, because it will have this issue: `@rustbot` label beta-nominated
2023-06-13 22:34:59 +00:00
..
2023-06-05 16:01:09 +02:00
2023-06-03 09:44:30 +08:00
2023-06-12 11:58:40 +02:00
2023-05-26 15:18:54 -04:00
2023-05-26 18:55:02 +01:00