mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-09 03:38:47 +00:00
Auto merge of #3761 - rust-lang:rustup-2024-07-24, r=RalfJung
Automatic Rustup
This commit is contained in:
commit
8ad2b26aaf
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue