mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Fix panic context
This commit is contained in:
parent
31db677a94
commit
1a74f25f90
2 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
use std::{cell::RefCell, panic, sync::Once};
|
||||
|
||||
pub fn enter(context: String) -> impl Drop {
|
||||
pub fn enter(context: String) -> PanicContext {
|
||||
static ONCE: Once = Once::new();
|
||||
ONCE.call_once(PanicContext::init);
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ pub fn enter(context: String) -> impl Drop {
|
|||
}
|
||||
|
||||
#[must_use]
|
||||
struct PanicContext {
|
||||
pub struct PanicContext {
|
||||
_priv: (),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue