diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-18 22:26:36 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-10-18 22:26:36 +0200 |
| commit | da66a501f6423d498627453dd7d0f8bc874ee42d (patch) | |
| tree | b63cfe8b4498fdac6c9e197baee1a4ca4d40ad19 /compiler/rustc_span/src | |
| parent | 462ee9c1b5eb0ae759e2fcc6f35dc5db4fc04367 (diff) | |
| download | rust-da66a501f6423d498627453dd7d0f8bc874ee42d.tar.gz rust-da66a501f6423d498627453dd7d0f8bc874ee42d.zip | |
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.
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 3a2a3adce35..c36d6380771 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -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, |
