Function rustc_expand::mbe::macro_check::check_meta_variables
source · pub(super) fn check_meta_variables(
psess: &ParseSess,
node_id: NodeId,
span: Span,
lhses: &[TokenTree],
rhses: &[TokenTree]
) -> Result<(), ErrorGuaranteed>Expand description
Checks that meta-variables are used correctly in a macro definition.
Arguments:
psessis used to emit diagnostics and lintsnode_idis used to emit lintsspanis used when no spans are availablelhsesandrhsesshould have the same length and represent the macro definition