`core::mem::DropGuard` has just been stabilized and will be available in Rust 1....

@yosh@toot.yosh.is

`core::mem::DropGuard` has just been stabilized and will be available in Rust 1.100.0!

github.com/rust-lang/rust/pull

I think of this as: "we have defer at home". When a language has RAII and closures, most of what defer has to offer can be encoded as a library type.