fn make_drop_impl(cx: &Context<'_>) -> TokenStream
Expand description
Creates Drop
implementation for the original type.
The kind of Drop
impl generated depends on pinned_drop
field:
Some
- implementsDrop
viaPinnedDrop
impl.None
- generates code that ensures thatDrop
trait is not implemented, instead of generatingDrop
impl.