Function rustc_expand::mbe::macro_check::check_ops_is_prefix
source · [−]fn check_ops_is_prefix(
sess: &ParseSess,
node_id: NodeId,
macros: &Stack<'_, MacroState<'_>>,
binders: &FxHashMap<MacroRulesNormalizedIdent, BinderInfo>,
ops: &Stack<'_, KleeneToken>,
span: Span,
name: MacroRulesNormalizedIdent
)
Expand description
Checks that a meta-variable occurrence is valid.
Arguments:
sess
is used to emit diagnostics and lintsnode_id
is used to emit lintsmacros
is the stack of possible outer macrosbinders
contains the binders of the associated LHSops
is the stack of Kleene operators from the RHSspan
is the span of the meta-variable to checkname
is the name of the meta-variable to check