Module base

Source

Macros§

make_MacEager 🔒
make_stmts_default 🔒

Structs§

DeriveResolution
DummyResult
Fill-in macro expansion result, to allow compilation to continue after hitting errors.
ExpansionData
ExtCtxt
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.
Indeterminate
Error type that denotes indeterminacy.
MacEager
MacResult implementation for the common case where you’ve already built each form of AST that you might return.
ModuleData
SyntaxExtension
A struct representing a macro definition in “lowered” form ready for expansion.

Enums§

Annotatable
ExpandResult
Result of an expansion that may need to be retried. Consider using this for non-MultiItemModifier expanders as well.
SyntaxExtensionKind
A syntax extension kind.

Traits§

AttrProcMacro
BangProcMacro
GlobDelegationExpander
LintStoreExpand
MacResult
The result of a macro expansion. The return values of the various methods are spliced into the AST at the callsite of the macro.
MultiItemModifier
ResolverExpand
TTMacroExpander
Represents a thing that maps token trees to Macro Results

Functions§

ann_pretty_printing_compatibility_hack 🔒
nt_pretty_printing_compatibility_hack 🔒
parse_macro_name_and_helper_attrs
pretty_printing_compatibility_hack 🔒
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.
resolve_path
Resolves a path mentioned inside Rust code, returning an absolute path.

Type Aliases§

LintStoreExpandDyn 🔒
MacroExpanderFn
MacroExpanderResult