Rust basically gives the compiler understanding of unique_ptr and prevents you from using it after you’ve moved it.
In practice that's probably optional, because the heap and all resources are usually torn down with the process anyway. Important things, like saving data or committing transactions, shouldn't be done in destructors.