spacegate_kernel/utils/
never.rs

1/// Map any type to any type, but this function should be never called.
2///
3/// this can be a shortcut for `unreachable!()`
4#[inline(always)]
5pub fn never<A, B>(_: A) -> B {
6    unreachable!("never function called")
7}