about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_resolve/src/errors.rs')
-rw-r--r--compiler/rustc_resolve/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/errors.rs b/compiler/rustc_resolve/src/errors.rs
index ff44ccb265a..660614d3421 100644
--- a/compiler/rustc_resolve/src/errors.rs
+++ b/compiler/rustc_resolve/src/errors.rs
@@ -484,7 +484,7 @@ pub(crate) struct MacroExpectedFound<'a> {
     #[subdiagnostic]
     pub(crate) remove_surrounding_derive: Option<RemoveSurroundingDerive>,
     #[subdiagnostic]
-    pub(crate) remove_surrounding_derive_help: Option<RemoveAddAsNonDerive<'a>>,
+    pub(crate) add_as_non_derive: Option<AddAsNonDerive<'a>>,
 }
 
 #[derive(Subdiagnostic)]
@@ -496,6 +496,6 @@ pub(crate) struct RemoveSurroundingDerive {
 
 #[derive(Subdiagnostic)]
 #[help(resolve_add_as_non_derive)]
-pub(crate) struct RemoveAddAsNonDerive<'a> {
+pub(crate) struct AddAsNonDerive<'a> {
     pub(crate) macro_path: &'a str,
 }