Merge from rust-lang/rust

This commit is contained in:
Laurențiu Nicola 2024-07-28 17:19:33 +03:00
commit 900db35537

View file

@ -21,6 +21,7 @@ impl PanicContext {
#[allow(clippy::print_stderr)]
fn init() {
let default_hook = panic::take_hook();
#[allow(deprecated)]
let hook = move |panic_info: &panic::PanicInfo<'_>| {
with_ctx(|ctx| {
if !ctx.is_empty() {