1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#![deny(missing_docs, warnings)] #![no_std] //! `panic!()` in debug builds, optimization hint in release. #[macro_export] /// `panic!()` in debug builds, optimization hint in release. macro_rules! debug_unreachable { () => { debug_unreachable!("entered unreachable code") }; ($e:expr) => { if cfg!(debug_assertions) { panic!($e) } else { core::hint::unreachable_unchecked() } } }