Mara Bos
|
6b44662669
|
Parse the format string for the panic_fmt lint for better warnings.
|
2020-10-20 22:25:42 +02:00 |
|
Mara Bos
|
0f193d1a62
|
Small cleanups in assert!() and panic_fmt lint.
(From the PR feedback.)
Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
|
2020-10-19 21:14:05 +02:00 |
|
Mara Bos
|
d3b41497fe
|
Also apply panic_fmt lint suggestions to debug_assert!().
|
2020-10-19 00:45:07 +02:00 |
|
Mara Bos
|
9615d27ab7
|
Don't see {{}} as placeholder in panic_fmt lint.
|
2020-10-19 00:05:19 +02:00 |
|
Mara Bos
|
b8a8b681b8
|
Formatting.
|
2020-10-18 23:25:57 +02:00 |
|
Mara Bos
|
ded269fa10
|
Improve panic_fmt message for panic!("{}") with a fmt placeholder.
|
2020-10-18 23:25:06 +02:00 |
|
Mara Bos
|
f228efc3f5
|
Make panic_fmt lint work properly for assert!(expr, msg) too.
|
2020-10-18 22:29:40 +02:00 |
|
Mara Bos
|
da66a501f6
|
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.
|
2020-10-18 22:26:36 +02:00 |
|
Mara Bos
|
a46679098f
|
Add lint to warn about braces in a panic message.
|
2020-10-18 22:24:15 +02:00 |
|