Skip to content

Make TypeFoldable derivable #65674

Closed
@Aaron1011

Description

@Aaron1011

Currently, the (internal) TypeFoldable trait must be implemented via the fairly verbose EnumTypeFoldableImpl! and BraceStructTypeFoldableImpl! macros. Adding a derive(TypeFoldable) proc-macro to librustc_macros would allow us to delete a large amount of code, and would drastically simplify adding new TypeFoldable implementations.

Metadata

Metadata

Assignees

No one assigned

    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