Macros§
Structs§
- Fill-in macro expansion result, to allow compilation to continue after hitting errors.
- One of these is made during expansion and incrementally updated as we go; when a macro expansion occurs, the resulting nodes have the
backtrace() -> expn_data
of their expansion context stored into their span. - Error type that denotes indeterminacy.
MacResult
implementation for the common case where you’ve already built each form of AST that you might return.- A struct representing a macro definition in “lowered” form ready for expansion.
Enums§
- Result of an expansion that may need to be retried. Consider using this for non-
MultiItemModifier
expanders as well. - A syntax extension kind.
Traits§
- The result of a macro expansion. The return values of the various methods are spliced into the AST at the callsite of the macro.
- Represents a thing that maps token trees to Macro Results
Functions§
- If this item looks like a specific enums from
rental
, emit a fatal error. See #73345 and #83125 for more details. FIXME(#73933): Remove this eventually. - Resolves a
path
mentioned inside Rust code, returning an absolute path.