1/// Unwrap an `Option<T>` in a `const` context.
2///
3/// If it fails, panics with the given message.
4macro_rules! unwrap {
5 ($val:expr, $msg:expr$(,)?) => {
6match $val {
7Some(val) => val,
8None => panic!($msg),
9 }
10 };
11}
1213pub(crate) use unwrap;