panic-ub 0.0.0

Panic? What panic?
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_std]
#[cfg(feature = "enabled")]
const _: () = {
    use core::{hint::unreachable_unchecked, panic::PanicInfo};

    #[cfg(any(not(debug_assertions), feature = "force"))]
    const _: () = {
        #[cfg(not(test))]
        const _: () = {
            #[panic_handler]
            fn panic(info: &PanicInfo) -> ! {
                unsafe { unreachable_unchecked() }
            }
        };
    };
};