about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/errors.rs
diff options
context:
space:
mode:
authorAndrew Zhogin <andrew.zhogin@gmail.com>2025-06-17 10:14:05 +0700
committerAndrew Zhogin <andrew.zhogin@gmail.com>2025-06-18 09:04:34 +0700
commiteee2d7b1016d6f2743c5f61989b28e05fefd9aff (patch)
tree8742856f63ccff0392c1fcf2de804b724ac95e39 /compiler/rustc_hir_analysis/src/errors.rs
parent55d436467c351b56253deeba209ae2553d1c243f (diff)
downloadrust-eee2d7b1016d6f2743c5f61989b28e05fefd9aff.tar.gz
rust-eee2d7b1016d6f2743c5f61989b28e05fefd9aff.zip
AsyncDrop trait without sync Drop generates an error
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/errors.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs
index 8de2aec95a7..318aaab50f4 100644
--- a/compiler/rustc_hir_analysis/src/errors.rs
+++ b/compiler/rustc_hir_analysis/src/errors.rs
@@ -1712,3 +1712,11 @@ pub(crate) struct AbiCustomClothedFunction {
     )]
     pub naked_span: Span,
 }
+
+#[derive(Diagnostic)]
+#[diag(hir_analysis_async_drop_without_sync_drop)]
+#[help]
+pub(crate) struct AsyncDropWithoutSyncDrop {
+    #[primary_span]
+    pub span: Span,
+}