about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-03-06 17:08:34 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-11 08:52:50 +1100
commit567744c10ea7306d57ebee7d87d9999711de7c84 (patch)
treed21e28aeba90bf22480d14e29be0495e87935579 /compiler/rustc_resolve/src/errors.rs
parentaf69f4c48c1e1cfbb9ba43b376edcfbdd8cfbca4 (diff)
downloadrust-567744c10ea7306d57ebee7d87d9999711de7c84.tar.gz
rust-567744c10ea7306d57ebee7d87d9999711de7c84.zip
Remove `Default` derive from `MacroExpectedFound`.
It's the only diagnostic in the entire project that impls `Default`, and
the code is clearer without it.
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
-rw-r--r--compiler/rustc_resolve/src/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs
index a9f5ed9908b..5eee6a51fd2 100644
--- a/compiler/rustc_resolve/src/errors.rs
+++ b/compiler/rustc_resolve/src/errors.rs
@@ -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]