Skip to content

Use #[rustc_layout] instead of print-type-sizes #69852

Open
@RalfJung

Description

@RalfJung

@eddyb suggested that the #[rustc_layout] attribute (usage example) should be improved to replace -Z print-type-sizes and then be used for these tests. Then the tests also would not have to be ignore-pass any more.

That attribute also seems very useful when working with LayoutDetails in general in Rust, I would have loved to know about its existence. I wonder what would be a good place to document it?

Also see this blog post on rustc_layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-cleanupCategory: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.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