Currently the current panic handler simply is loop { }. In release builds, this will likely optimize out and it also has problems because interrupts will still execute.
We should probably do something like this
asm!("cli"); // disable interrupts
loop {
asm!( "" ::::: "volatile"); // wrong syntax, I'm going from memory
}