macro_rules! bug {
() => { ... };
($fmt:literal $(, $arg:expr)* $(,)?) => { ... };
}Expand description
This is a macro that is used to panic when a bug is detected. It is similar to the BUG() macro in the Linux kernel. Link: https://www.kernel.org/