mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
Merge from rust-lang/rust
This commit is contained in:
commit
900db35537
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue