Auto merge of #17732 - lnicola:sync-from-rust, r=lnicola

minor: sync from downstream
This commit is contained in:
bors 2024-07-28 14:22:27 +00:00
commit fd74511f34
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -1 +1 @@
a91f7d72f12efcc00ecf71591f066c534d45ddf7 1b51d80027919563004918eaadfa0d890ac0eb93