about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/messages.ftl
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/messages.ftl
parent55d436467c351b56253deeba209ae2553d1c243f (diff)
downloadrust-eee2d7b1016d6f2743c5f61989b28e05fefd9aff.tar.gz
rust-eee2d7b1016d6f2743c5f61989b28e05fefd9aff.zip
AsyncDrop trait without sync Drop generates an error
Diffstat (limited to 'compiler/rustc_hir_analysis/messages.ftl')
-rw-r--r--compiler/rustc_hir_analysis/messages.ftl3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_hir_analysis/messages.ftl b/compiler/rustc_hir_analysis/messages.ftl
index f768bd157ab..bd2252c1bf8 100644
--- a/compiler/rustc_hir_analysis/messages.ftl
+++ b/compiler/rustc_hir_analysis/messages.ftl
@@ -46,6 +46,9 @@ hir_analysis_associated_type_trait_uninferred_generic_params = cannot use the {$
 
 hir_analysis_associated_type_trait_uninferred_generic_params_multipart_suggestion = use a fully qualified path with explicit lifetimes
 
+hir_analysis_async_drop_without_sync_drop = `AsyncDrop` impl without `Drop` impl
+    .help = type implementing `AsyncDrop` trait must also implement `Drop` trait to be used in sync context and unwinds
+
 hir_analysis_auto_deref_reached_recursion_limit = reached the recursion limit while auto-dereferencing `{$ty}`
     .label = deref recursion limit reached
     .help = consider increasing the recursion limit by adding a `#![recursion_limit = "{$suggested_limit}"]` attribute to your crate (`{$crate_name}`)