pub fn report_panic_info(info: &PanicInfo<'_>)
Report the panic so the message is persisted.
This function is used in custom panic handlers.