[−][src]Static rustc_lint::panic_fmt::PANIC_FMT
pub(in panic_fmt) static PANIC_FMT: &Lint
The panic_fmt lint detects panic!("..") with { or } in the string literal.
Example
panic!("{}");
{{produces}}
Explanation
panic!("{}") panics with the message "{}", as a panic!() invocation
with a single argument does not use format_args!().
A future edition of Rust will interpret this string as format string,
which would break this.