When Scope Lies: The Wildcard Pattern Drop Footgun in Rust
One of the big strengths of Rust is its use of automatic memory management. When a value gets out of
scope, the compiler automatically calls its destructor and frees the memory. During my work on
graceful shutdown I have stumbled on a less known interaction between scopes and the _ wildcard
pattern that can lead to surprising order of destructors.