Skip to content

Commit

Permalink
Auto merge of #112062 - lukas-code:unsized-layout, r=wesleywiser
Browse files Browse the repository at this point in the history
Make struct layout not depend on unsizeable tail

fixes (after backport) rust-lang/rust#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
  • Loading branch information
bors committed Jun 13, 2023
2 parents bfb3f18 + 293d2e1 commit c2bbfcb
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit c2bbfcb

Please sign in to comment.