about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-14 14:22:11 -0400
committerMichael Goulet <michael@errs.io>2024-07-14 14:22:11 -0400
commitf08c43afc7b801f2ab0109764df9cc959ebc8b79 (patch)
treee40a2c74a1aafd3773850e0a8e48657def30864e /compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
parentdc207339137a766d7f45590a97cfa0f2a0314e2f (diff)
downloadrust-f08c43afc7b801f2ab0109764df9cc959ebc8b79.tar.gz
rust-f08c43afc7b801f2ab0109764df9cc959ebc8b79.zip
Suppress some fallout from gen in synstructure
Diffstat (limited to 'compiler/rustc_macros/src/diagnostics/subdiagnostic.rs')
-rw-r--r--compiler/rustc_macros/src/diagnostics/subdiagnostic.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
index 69014f39925..7f090f5ebc1 100644
--- a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
+++ b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
@@ -86,6 +86,9 @@ impl SubdiagnosticDerive {
 
         let diag = &self.diag;
         let f = &self.f;
+
+        // FIXME(edition_2024): Fix the `keyword_idents_2024` lint to not trigger here?
+        #[allow(keyword_idents_2024)]
         let ret = structure.gen_impl(quote! {
             gen impl rustc_errors::Subdiagnostic for @Self {
                 fn add_to_diag_with<__G, __F>(
@@ -100,6 +103,7 @@ impl SubdiagnosticDerive {
                 }
             }
         });
+
         ret
     }
 }