1
Fork 0

Specialize panic_fmt lint for the {core,std}::panic!() macros.

It now only reacts to expansion of those macros, and suggests
inserting `"{}", ` in the right place.
This commit is contained in:
Mara Bos 2020-10-18 22:26:36 +02:00
parent 462ee9c1b5
commit da66a501f6
2 changed files with 24 additions and 5 deletions

View file

@ -393,6 +393,7 @@ symbols! {
copysignf64,
core,
core_intrinsics,
core_panic_macro,
cosf32,
cosf64,
crate_id,
@ -1064,6 +1065,7 @@ symbols! {
staticlib,
std,
std_inject,
std_panic_macro,
stmt,
stmt_expr_attributes,
stop_after_dataflow,