We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2542ae4 commit bbab93aCopy full SHA for bbab93a
src/lib.rs
@@ -28,7 +28,9 @@ pub fn initialize(_argc: *const isize, _argv: *const *const *const u8) -> isize
28
// impossible to build code using compiler plugins with this flag.
29
// We will be able to remove this code when
30
// https://github.com/rust-lang/cargo/issues/5423 is fixed.
31
- ::std::panic::set_hook(Box::new(|_| {
+ let default_hook = ::std::panic::take_hook();
32
+ ::std::panic::set_hook(Box::new(move |panic_info| {
33
+ default_hook(panic_info);
34
::std::process::abort();
35
}));
36
0
0 commit comments