Re-use struct fields on drop; was: Drop(&mut self) vs. drop(self)

Right, a derive covers almost everything except manually spelling out ManuallyDrop in the struct declaration. I did a first quick implementation and it works fine for me.

Thanks, I like that idea very much, I'll look into this.

1 Like