Specify macro is invalid in certain contexts
This commit is contained in:
parent
8771282d4e
commit
287db04636
13 changed files with 209 additions and 26 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue