unwinding
What a panic does on the way out, dropping every frame's values.
Unwinding walks the call stack from the panicking function back to main, dropping each frame's live values before the thread ends.
Loading interactive…
Examples
If
mainholds a value with aDropimpl when a panic happens, its drop code runs after the panic message, as the frame is unwound.