pub fn init_panic_handler()Expand description
Initialize the panic handler to catch panics and store the message, file, and line number in PANIC_INFO.
Installed once. Under #[cfg(test)] the previous hook (cargo’s) is chained so assert failures
still print normally; production stays silent and relies on report_any_panic.