fn check_occurrences(
    psess: &ParseSess,
    node_id: NodeId,
    rhs: &TokenTree,
    macros: &Stack<'_, MacroState<'_>>,
    binders: &FxHashMap<MacroRulesNormalizedIdent, BinderInfo>,
    ops: &Stack<'_, KleeneToken>,
    guar: &mut Option<ErrorGuaranteed>,
)Expand description
Checks rhs as part of the RHS of a macro definition and sets valid to false in case of
errors.
Arguments:
psessis used to emit diagnostics and lintsnode_idis used to emit lintsrhsis checked as part of a RHSmacrosis the stack of possible outer macrosbinderscontains the binders of the associated LHSopsis the stack of Kleene operators from the RHSguaris set in case of errors