Hacker News new | ask | show | jobs
by tazjin 1482 days ago
It's not enforced in Rust, but it's automatic unless you actively prevent it from happening. So you could say it's an opt-out feature.

std::mem::forget is considered safe, as explained in its docs: https://doc.rust-lang.org/std/mem/fn.forget.html

1 comments

Fair enough, yeah.