mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
Auto merge of #17732 - lnicola:sync-from-rust, r=lnicola
minor: sync from downstream
This commit is contained in:
commit
fd74511f34
2 changed files with 2 additions and 1 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() {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
a91f7d72f12efcc00ecf71591f066c534d45ddf7
|
1b51d80027919563004918eaadfa0d890ac0eb93
|
||||||
|
|
Loading…
Reference in a new issue