mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
b30315d64f
Previously, drop-tracking would incorrectly assume the struct would be dropped immediately, which was not true: when the field had a type with a manual `Drop` impl, the drop becomes observable and has to be dropped after the await instead. For reasons I don't understand, this also fixes another error crater popped up related to type parameters. #98476