Module rustc_expand::base
source · 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_dataof their expansion context stored into their span. - Error type that denotes indeterminacy.
MacResultimplementation 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-
MultiItemModifierexpanders 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§
- This nonterminal looks like some specific enums from
proc-macro-hackandprocedural-masqueradecrates. We need to maintain some special pretty-printing behavior for them due to incorrect asserts in old versions of those crates and their wide use in the ecosystem. See issue #73345 for more details. FIXME(#73933): Remove this eventually. - Resolves a
pathmentioned inside Rust code, returning an absolute path.