mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 19:16:36 +00:00
AsyncDrop trait without sync Drop generates an error When type implements `AsyncDrop` trait, it must also implement sync `Drop` trait to be used in sync context and unwinds. This PR adds error generation in such a case. Fixes: rust-lang/rust#140696
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.