Crate rustc_macros
source ·Macros
- Implements the
fluent_messages
macro, 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
S
that can be used as an index withIndexVec
and so on.
Derive Macros
- Derives
TypeFoldable
for the annotatedstruct
orenum
(union
is not supported). - Derives
TypeVisitable
for the annotatedstruct
orenum
(union
is not supported).