Closed
Description
There's currently a util::ignore
function that consumes a value to destroy it early.
It would be nicer the if Drop
trait's drop
method took self
by value and could be called early, which would require some compiler magic to avoid an infinite destruction cycle in the drop
method. This would also allow drop
to move out of self
, which is potentially useful.