1 use rustc_macros::SessionDiagnostic;
2 use rustc_span::symbol::MacroRulesNormalizedIdent;
5 #[derive(SessionDiagnostic)]
6 #[diag(expand::expr_repeat_no_syntax_vars)]
7 pub(crate) struct NoSyntaxVarsExprRepeat {
12 #[derive(SessionDiagnostic)]
13 #[diag(expand::must_repeat_once)]
14 pub(crate) struct MustRepeatOnce {
19 #[derive(SessionDiagnostic)]
20 #[diag(expand::count_repetition_misplaced)]
21 pub(crate) struct CountRepetitionMisplaced {
26 #[derive(SessionDiagnostic)]
27 #[diag(expand::meta_var_expr_unrecognized_var)]
28 pub(crate) struct MetaVarExprUnrecognizedVar {
31 pub key: MacroRulesNormalizedIdent,
34 #[derive(SessionDiagnostic)]
35 #[diag(expand::var_still_repeating)]
36 pub(crate) struct VarStillRepeating {
39 pub ident: MacroRulesNormalizedIdent,
42 #[derive(SessionDiagnostic)]
43 #[diag(expand::meta_var_dif_seq_matchers)]
44 pub(crate) struct MetaVarsDifSeqMatchers {