Remove Default derive from MacroExpectedFound.

It's the only diagnostic in the entire project that impls `Default`, and
the code is clearer without it.
This commit is contained in:
Nicholas Nethercote 2024-03-06 17:08:34 +11:00
parent af69f4c48c
commit 567744c10e
2 changed files with 3 additions and 2 deletions

View file

@ -521,7 +521,7 @@ pub(crate) struct ToolModuleImported {
#[diag(resolve_module_only)]
pub(crate) struct ModuleOnly(#[primary_span] pub(crate) Span);
#[derive(Diagnostic, Default)]
#[derive(Diagnostic)]
#[diag(resolve_macro_expected_found)]
pub(crate) struct MacroExpectedFound<'a> {
#[primary_span]