Code bloat caused by lack of nounwind attr on `drop_in_place`
Rust Internals [Unofficial]
April 15, 2026
There are proposals to abort when drop panics, at which point all drop functions could be marked as non unwinding.
github.com/rust-lang/rfcs
Don't allow unwinding from Drop impls (#3288)
master ← Amanieu:panic-in-drop
opened 01:02AM - 05 Jul 22 UTC
Amanieu
+332 -0
This RFC proposes to change this behavior to always abort if a panic attempts to… escape a drop, even if this drop was invoked as part of normal function execution (as opposed to unwinding which already aborts with a double-panic). Previous discussion: https://github.com/rust-lang/lang-team/issues/97 Rendered FCP comment
Discussion in the ATmosphere