Function rustc_expand::mbe::macro_check::check_binders [−][src]
fn check_binders(
sess: &ParseSess,
node_id: NodeId,
lhs: &TokenTree,
macros: &Stack<'_, MacroState<'_>>,
binders: &mut FxHashMap<MacroRulesNormalizedIdent, BinderInfo>,
ops: &Stack<'_, KleeneToken>,
valid: &mut bool
)Expand description
Checks lhs as part of the LHS of a macro definition, extends binders with new binders, and
sets valid to false in case of errors.
Arguments:
sessis used to emit diagnostics and lintsnode_idis used to emit lintslhsis checked as part of a LHSmacrosis the stack of possible outer macrosbinderscontains the binders of the LHSopsis the stack of Kleene operators from the LHSvalidis set in case of errors