diff --git a/src/main.rs b/src/main.rs index 160973b..b98a303 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,9 +76,7 @@ fn main() { 127 } Ok(_) => 0, - Err(e @ valgrind::Error::MalformedOutput(..)) => { - panic_with!(e); - } + Err(e @ valgrind::Error::MalformedOutput(..)) => std::panic::panic_any(e), // the panic handler catches this and reports it appropriately Err(valgrind::Error::ValgrindFailure(output)) if output.contains(STACK_OVERFLOW) => { output::display_stack_overflow(&output); 134 // default exit code for stack overflows diff --git a/src/panic.rs b/src/panic.rs index 4a91313..f652c40 100644 --- a/src/panic.rs +++ b/src/panic.rs @@ -29,17 +29,6 @@ const PANIC_HEADER: &str = " how to reproduce it. "; -/// Panic with a custom panic output. -/// -/// This is helpful for printing debug information to the panic message. -#[macro_export] -#[allow(clippy::module_name_repetitions)] // necessary for exported macro -macro_rules! panic_with { - ($e:expr) => { - std::panic::panic_any($e) - }; -} - /// Replaces any previous hook with the custom hook of this application. /// /// This custom hook points the user to the project repository and asks them to