diff --git a/shed/panichandler/src/lib.rs b/shed/panichandler/src/lib.rs index 0a1c0ca19..b9ecad94e 100644 --- a/shed/panichandler/src/lib.rs +++ b/shed/panichandler/src/lib.rs @@ -16,7 +16,7 @@ use std::io; use std::io::BufWriter; use std::io::Write; use std::panic; -use std::panic::PanicInfo; +use std::panic::PanicHookInfo; use std::ptr; use backtrace::Backtrace; @@ -40,7 +40,7 @@ pub enum Fate { Abort, } -fn handler(panic: &PanicInfo<'_>, fate: Fate) { +fn handler(panic: &PanicHookInfo<'_>, fate: Fate) { let stderr = io::stderr(); let mut w = BufWriter::new(stderr.lock());