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.
2 parents ff32cf5 + 351e3c7 commit 864aabfCopy full SHA for 864aabf
src/lib.rs
@@ -30,7 +30,9 @@ pub fn initialize(_argc: *const isize, _argv: *const *const *const u8) -> isize
30
// impossible to build code using compiler plugins with this flag.
31
// We will be able to remove this code when
32
// https://github.com/rust-lang/cargo/issues/5423 is fixed.
33
- ::std::panic::set_hook(Box::new(|_| {
+ let default_hook = ::std::panic::take_hook();
34
+ ::std::panic::set_hook(Box::new(move |panic_info| {
35
+ default_hook(panic_info);
36
::std::process::abort();
37
}));
38
0
0 commit comments