Skip to content

Split ty::layout::Layout into in-memory field placements, ABI and discriminant representation. #44426

Closed
@eddyb

Description

@eddyb

This should allow us to represent newtypes and implement enum niche optimizations, without an explosion of cases that need to be handle. I'll attempt tackling it on a trans/ABI branch of mine.
cc @gankro @nox @rust-lang/compiler

Metadata

Metadata

Assignees

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions