From bbaeb757f712375398b28fce24c575e69c97e1a1 Mon Sep 17 00:00:00 2001 From: GearsDatapacks Date: Fri, 18 Oct 2024 11:40:50 +0100 Subject: [PATCH] Rust 1.82.0 --- compiler-cli/src/panic.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-cli/src/panic.rs b/compiler-cli/src/panic.rs index 099b6a704..69caf1692 100644 --- a/compiler-cli/src/panic.rs +++ b/compiler-cli/src/panic.rs @@ -1,13 +1,13 @@ #![allow(clippy::unwrap_used)] -use std::panic::PanicInfo; +use std::panic::PanicHookInfo; pub fn add_handler() { - std::panic::set_hook(Box::new(move |info: &PanicInfo<'_>| { + std::panic::set_hook(Box::new(move |info: &PanicHookInfo<'_>| { print_compiler_bug_message(info) })); } -fn print_compiler_bug_message(info: &PanicInfo<'_>) { +fn print_compiler_bug_message(info: &PanicHookInfo<'_>) { let message = match ( info.payload().downcast_ref::<&str>(), info.payload().downcast_ref::(),