feat(derive): make #[diagnostic] optional for enums, too

This commit is contained in:
Kat Marchán 2021-09-07 17:45:30 -07:00
parent 824cd8bebe
commit ffe1b558d0
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 0 additions and 6 deletions

View File

@ -150,12 +150,6 @@ impl Diagnostic {
fields: var.fields,
args,
});
} else {
// Also handle when there's multiple `#[diagnostic]` attrs?
return Err(syn::Error::new(
var.ident.span(),
"#[diagnostic] attribute is required on all enum variants when deriving Diagnostic.",
));
}
}
Diagnostic::Enum {