diff --git a/src/expr.rs b/src/expr.rs index a94f51bb811..feed584dba6 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1820,12 +1820,12 @@ const FORMAT_LIKE_WHITELIST: &[&str] = &[ "format_args!", "print!", "println!", + "panic!", "unreachable!", // From the `log` crate. "debug!", "error!", "info!", - "panic!", "warn!", ];