mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-08 11:18:48 +00:00
Merge from rustc
This commit is contained in:
commit
f05c969197
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