pub static UNCONDITIONAL_PANIC: &'static Lint
Expand description

The unconditional_panic lint detects an operation that will cause a panic at runtime.


let x = 1 / 0;



This lint detects code that is very likely incorrect because it will always panic, such as division by zero and out-of-bounds array accesses. Consider adjusting your code if this is a bug, or using the panic! or unreachable! macro instead in case the panic is intended.