about summary refs log tree commit diff
path: root/compiler/rustc_metadata/src/errors.rs
diff options
context:
space:
mode:
authorAndrew Zhogin <andrew.zhogin@gmail.com>2025-05-19 21:14:28 +0700
committerAndrew Zhogin <andrew.zhogin@gmail.com>2025-05-19 21:38:07 +0700
commit61059282eb9ea1f37804790b182e5821337924b4 (patch)
treea13dd5743b40836b431c051fe824162d9c0891d4 /compiler/rustc_metadata/src/errors.rs
parent7068c8bd81c73db264c544f75a43158555567848 (diff)
downloadrust-61059282eb9ea1f37804790b182e5821337924b4.tar.gz
rust-61059282eb9ea1f37804790b182e5821337924b4.zip
Warning added when dependency crate has async drop types, and the feature is disabled
Diffstat (limited to 'compiler/rustc_metadata/src/errors.rs')
-rw-r--r--compiler/rustc_metadata/src/errors.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_metadata/src/errors.rs b/compiler/rustc_metadata/src/errors.rs
index c45daeda85d..16f59793e63 100644
--- a/compiler/rustc_metadata/src/errors.rs
+++ b/compiler/rustc_metadata/src/errors.rs
@@ -811,3 +811,13 @@ pub struct UnknownTargetModifierUnsafeAllowed {
     pub span: Span,
     pub flag_name: String,
 }
+
+#[derive(Diagnostic)]
+#[diag(metadata_async_drop_types_in_dependency)]
+#[help]
+pub struct AsyncDropTypesInDependency {
+    #[primary_span]
+    pub span: Span,
+    pub extern_crate: Symbol,
+    pub local_crate: Symbol,
+}