Macro more_asserts::debug_unreachable [] [src]

macro_rules! debug_unreachable {
    ($($arg:tt)*) => { ... };

Panics if reached. This is a variant of the standard library's unreachable! macro that is controlled by cfg!(debug_assertations).

Useful mainly when reaching the code is a bug that you absolutely want to know about, but there's a sane way to proceed in production code regardless. Forwards any arguments passed to it to unreachable!.