Make TypeFoldable derivable #65674
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently, the (internal)
TypeFoldable
trait must be implemented via the fairly verboseEnumTypeFoldableImpl!
andBraceStructTypeFoldableImpl!
macros. Adding aderive(TypeFoldable)
proc-macro tolibrustc_macros
would allow us to delete a large amount of code, and would drastically simplify adding newTypeFoldable
implementations.The text was updated successfully, but these errors were encountered: