Crate rustc_macros
source ·Macros§
Attribute Macros§
- Derive an extension trait for a given impl block. The trait name goes into the parenthesized args of the macro, for greppability. For example:
Derive Macros§
HashStableimplementation that has noHashStableContextbound and which addswherebounds forHashStablebased off of fields and not generics. This is suitable for use in crates likerustc_type_ir.- Derives
TypeFoldablefor the annotatedstructorenum(unionis not supported). - Derives
TypeVisitablefor the annotatedstructorenum(unionis not supported).