assertions_on_constants
code:text
What it does
Checks for assert!(true) and assert!(false) calls.
Why is this bad?
Will be optimized out by the compiler or should probably be replaced by a panic!() or unreachable!()
Known problems
None
Example
assert!(false)
assert!(true)
const B: bool = false;
assert!(B)
メモ
特になし、そうですねって感じ