Closed
Description
In today's Rust, constants and statics can't contain destructors, and this prevents them from containing things like None : Option<Box<_>>
. However, destructors are entirely memory safe, even if they don't get run - they can only leak resources, and this is relatively harmless, as you can't allocate resources in statics.
There's the problem of destructors being used to flush things, but I don't think this will be particularly evil.
Metadata
Metadata
Assignees
Labels
No labels