Suggest moving if non-found macro_rules! is defined later
This commit is contained in:
parent
d3d145ea1c
commit
97feb71254
7 changed files with 94 additions and 1 deletions
|
@ -685,6 +685,21 @@ pub(crate) struct ExplicitUnsafeTraits {
|
|||
pub(crate) ident: Ident,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[note(resolve_macro_defined_later)]
|
||||
pub(crate) struct MacroDefinedLater {
|
||||
#[primary_span]
|
||||
pub(crate) span: Span,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[label(resolve_consider_move_macro_position)]
|
||||
pub(crate) struct MacroSuggMovePosition {
|
||||
#[primary_span]
|
||||
pub(crate) span: Span,
|
||||
pub(crate) ident: Ident,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[note(resolve_missing_macro_rules_name)]
|
||||
pub(crate) struct MaybeMissingMacroRulesName {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue