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§
HashStable
implementation that has noHashStableContext
bound and which addswhere
bounds forHashStable
based off of fields and not generics. This is suitable for use in crates likerustc_type_ir
.- Derives
TypeFoldable
for the annotatedstruct
orenum
(union
is not supported). - Derives
TypeVisitable
for the annotatedstruct
orenum
(union
is not supported).