ebpf: use core::hint::unreachable_unchecked()

unreachable!() can panic when debug assertions is on, and we don't want
that inside a panic handler
pull/10/head
Alessandro Decina 3 years ago
parent c07fea5fbf
commit ffa931552e

@ -181,5 +181,5 @@ unsafe fn try_{{crate_name}}(_ctx: TracePointContext) -> Result<u32, u32> {
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
unreachable!()
unsafe { core::hint::unreachable_unchecked() }
}
Loading…
Cancel
Save