Skip to content

Move enum_variant_size_lint out of trans_crate(). #34018

Closed
@michaelwoerister

Description

@michaelwoerister

The enum_variant_size_lint is located in trans because we formerly relied on LLVM for providing type layouts. This is not true any more and after collector-driven trans lands, enum_variant_size_lint is the only reason we walk the HIR in trans_crate() at all. This should be cleaned up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.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