We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LazilyResolvedCapture
1 parent 948bef6 commit 7e1d6e6Copy full SHA for 7e1d6e6
library/std/src/backtrace.rs
@@ -93,7 +93,7 @@ use crate::cell::UnsafeCell;
93
use crate::env;
94
use crate::ffi::c_void;
95
use crate::fmt;
96
-use crate::panic::UnwindSafe;
+use crate::panic::{RefUnwindSafe, UnwindSafe};
97
use crate::sync::atomic::{AtomicUsize, Ordering::Relaxed};
98
use crate::sync::Once;
99
use crate::sys_common::backtrace::{lock, output_filename};
@@ -458,6 +458,9 @@ impl LazilyResolvedCapture {
458
// So long as `Capture` is `Sync`, `LazilyResolvedCapture` is too
459
unsafe impl Sync for LazilyResolvedCapture where Capture: Sync {}
460
461
+impl UnwindSafe for LazilyResolvedCapture {}
462
+impl RefUnwindSafe for LazilyResolvedCapture {}
463
+
464
impl Capture {
465
fn resolve(&mut self) {
466
// If we're already resolved, nothing to do!
0 commit comments