Crate rustc_macros
source ·Macros
- Implements the
fluent_messagesmacro, which performs compile-time validation of the compiler’s Fluent resources (i.e. that the resources parse and don’t multiply define the same messages) and generates constants that make using those messages in diagnostics more ergonomic. - Creates a struct type
Sthat can be used as an index withIndexVecand so on.
Derive Macros
- Derives
TypeFoldablefor the annotatedstructorenum(unionis not supported). - Derives
TypeVisitablefor the annotatedstructorenum(unionis not supported).