Repository: rust-cli/human-panic (language: rust)

Issue:
use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
Warning log:
```
warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead
 --> src/main.rs:8:5
  |
8 |     setup_panic!(); // <-- initialize human-panic
  |     ^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
  = note: this warning originates in the macro `$crate::setup_panic` which comes from the expansion of the macro `setup_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```


Discussion / hints:

Fix patch:
diff --git a/src/lib.rs b/src/lib.rs
index 10550d1..fb9a2aa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -50,6 +50,7 @@ use report::{Method, Report};
 
 use std::borrow::Cow;
 use std::io::Result as IoResult;
+#[allow(deprecated)]
 use std::panic::PanicInfo;
 use std::path::{Path, PathBuf};
 
@@ -149,8 +150,10 @@ macro_rules! setup_panic {
 
 #[doc(hidden)]
 pub fn setup_panic(meta: impl Fn() -> Metadata) {
+    #![allow(deprecated)]
+
     #[allow(unused_imports)]
-    use std::panic::{self, PanicInfo};
+    use std::panic;
 
     match PanicStyle::default() {
         PanicStyle::Debug => {}
@@ -266,6 +269,7 @@ fn write_msg<P: AsRef<Path>>(
 }
 
 /// Utility function which will handle dumping information to disk
+#[allow(deprecated)]
 pub fn handle_dump(meta: &Metadata, panic_info: &PanicInfo<'_>) -> Option<PathBuf> {
     let mut expl = String::new();
 


Test patch: