Specify macro is invalid in certain contexts
This commit is contained in:
committed by
Catherine Flores
parent
8771282d4e
commit
287db04636
@@ -1800,6 +1800,12 @@ pub struct UnknownPrefix<'a> {
|
||||
pub sugg: Option<UnknownPrefixSugg>,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
#[note(parse_macro_expands_to_adt_field)]
|
||||
pub struct MacroExpandsToAdtField<'a> {
|
||||
pub adt_ty: &'a str,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
pub enum UnknownPrefixSugg {
|
||||
#[suggestion(
|
||||
|
||||
Reference in New Issue
Block a user