tip for define macro name after macro_rules!

This commit is contained in:
bohan 2023-11-26 22:05:13 +08:00
parent dd6126ef56
commit 0f14e8ea74
5 changed files with 37 additions and 4 deletions

View file

@ -665,6 +665,13 @@ pub(crate) struct ExplicitUnsafeTraits {
pub(crate) ident: Ident,
}
#[derive(Subdiagnostic)]
#[note(resolve_missing_macro_rules_name)]
pub(crate) struct MaybeMissingMacroRulesName {
#[primary_span]
pub(crate) span: Span,
}
#[derive(Subdiagnostic)]
#[help(resolve_added_macro_use)]
pub(crate) struct AddedMacroUse;