Expand description
Parsing of attribute arguments.
Depending on the attribute parser, an ArgParser can be used to parse the arguments given to
an attribute. See its documentation for more information.
This is in essence an (improved) duplicate of rustc_ast/attr/mod.rs.
That module is intended to be deleted in its entirety.
FIXME(jdonszelmann): delete rustc_ast/attr/mod.rs
Structs§
- Meta
Item List Parser - Meta
Item 🔒List Parser Context - Meta
Item Parser - Utility that deconstructs a MetaItem into usable parts.
- Name
Value Parser - Path
Parser
Enums§
- Allow
Expr Metavar - Whether expansions of
exprmetavariables from decrarative macros are permitted. Used when parsing meta items; currently, onlycfgpredicates enable this option - ArgParser
- Used for parsing attribute arguments.
- Meta
Item OrLit Parser - Inside lists, values could be either literals, or more deeply nested meta items. This enum represents that.