Closed
Description
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.