Function panic_with_hook

pub(in ::panicking) fn panic_with_hook(payload: &mut dyn PanicPayload, location: &'static Location<'static>, can_unwind: bool, force_no_backtrace: bool) -> never

Central point for dispatching panics.

Executes the primary logic for a panic, including checking for recursive panics, panic hooks, and finally dispatching to the panic runtime to either abort or unwind.