Function rustc_expand::mbe::macro_check::check_meta_variables [−][src]
pub(super) fn check_meta_variables(
sess: &ParseSess,
node_id: NodeId,
span: Span,
lhses: &[TokenTree],
rhses: &[TokenTree]
) -> boolExpand description
Checks that meta-variables are used correctly in a macro definition.
Arguments:
sessis 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