File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ use crate::cell::UnsafeCell;
9393use crate :: env;
9494use crate :: ffi:: c_void;
9595use crate :: fmt;
96- use crate :: panic:: UnwindSafe ;
96+ use crate :: panic:: { RefUnwindSafe , UnwindSafe } ;
9797use crate :: sync:: atomic:: { AtomicUsize , Ordering :: Relaxed } ;
9898use crate :: sync:: Once ;
9999use crate :: sys_common:: backtrace:: { lock, output_filename} ;
@@ -458,6 +458,9 @@ impl LazilyResolvedCapture {
458458// So long as `Capture` is `Sync`, `LazilyResolvedCapture` is too
459459unsafe impl Sync for LazilyResolvedCapture where Capture : Sync { }
460460
461+ impl UnwindSafe for LazilyResolvedCapture { }
462+ impl RefUnwindSafe for LazilyResolvedCapture { }
463+
461464impl Capture {
462465 fn resolve ( & mut self ) {
463466 // If we're already resolved, nothing to do!
You can’t perform that action at this time.
0 commit comments