Function rustc_expand::mbe::macro_check::check_nested_occurrences [−][src]
fn check_nested_occurrences(
sess: &ParseSess,
node_id: NodeId,
tts: &[TokenTree],
macros: &Stack<'_, MacroState<'_>>,
binders: &FxHashMap<MacroRulesNormalizedIdent, BinderInfo>,
ops: &Stack<'_, KleeneToken>,
valid: &mut bool
)Expand description
Checks tts as part of the RHS of a macro definition, tries to recognize nested macro
definitions, and sets valid to false in case of errors.
Arguments:
sessis used to emit diagnostics and lintsnode_idis used to emit lintsttsis checked as part of a RHS and may contain macro definitionsmacrosis the stack of possible outer macrosbinderscontains the binders of the associated LHSopsis the stack of Kleene operators from the RHSvalidis set in case of errors