diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-23 13:19:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 13:19:09 +0000 |
| commit | dd8a75b2cf46a967b3449652fe17c19a8fcc4e41 (patch) | |
| tree | 5c7a8b98a80091eeb2192fa572c52ff617238472 /crates/stdx/src | |
| parent | 81609960fa30ea92e37b23dc7b025d1939626812 (diff) | |
| parent | 1a74f25f9026f152fdba6f85ec617c02205d98eb (diff) | |
| download | rust-dd8a75b2cf46a967b3449652fe17c19a8fcc4e41.tar.gz rust-dd8a75b2cf46a967b3449652fe17c19a8fcc4e41.zip | |
Merge #6335
6335: Fix panic context r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Diffstat (limited to 'crates/stdx/src')
| -rw-r--r-- | crates/stdx/src/panic_context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/stdx/src/panic_context.rs b/crates/stdx/src/panic_context.rs index fd232e0cce5..8d51e20d39e 100644 --- a/crates/stdx/src/panic_context.rs +++ b/crates/stdx/src/panic_context.rs @@ -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: (), } |
