External Publication
Visit Post

Drop on `await` point

Rust Internals [Unofficial] March 30, 2026
Source

Hello, what do you think about potentially adding a language feature that will allow forcing synchronous drop at the await boundary, with an error if value is used afterwards? There exists lots of data structures that rely on the fact that they are not being held across await point, and that might help with it.

Discussion in the ATmosphere

Loading comments...