diff options
| author | Andrew Zhogin <andrew.zhogin@gmail.com> | 2025-06-17 10:14:05 +0700 | 
|---|---|---|
| committer | Andrew Zhogin <andrew.zhogin@gmail.com> | 2025-06-18 09:04:34 +0700 | 
| commit | eee2d7b1016d6f2743c5f61989b28e05fefd9aff (patch) | |
| tree | 8742856f63ccff0392c1fcf2de804b724ac95e39 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 55d436467c351b56253deeba209ae2553d1c243f (diff) | |
| download | rust-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.rs | 8 | 
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, +} | 
