Closed Noratrieb closed 2 years ago
Could this be modified to just remove the comment and explain instead that we'll need something like this if a #[may_dangle]
-like thing ever gets stabilized?
Looks like you force pushed a new commit that is identical?
oh
Thank you for the contribution!
Aah. It should have been removed from the changelog as well! https://github.com/faern/oneshot/blob/3cee01f3ff91afa7691357494f87cbd3d2727446/CHANGELOG.md#fixed
I'll do that directly.
The nomicon has been outdated about this since 2015, see rust-lang/nomicon#363 for the update. We don't need to tell dropck that we are owning a T as it can already infer that from the generic parameter in the drop impl.
cc @Cassy343 who added it