File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ mod tests;
9090use crate :: cell:: Cell ;
9191use crate :: fmt;
9292use crate :: marker;
93- use crate :: panic:: UnwindSafe ;
93+ use crate :: panic:: { RefUnwindSafe , UnwindSafe } ;
9494use crate :: sync:: atomic:: { AtomicBool , AtomicUsize , Ordering } ;
9595use crate :: thread:: { self , Thread } ;
9696
@@ -124,9 +124,12 @@ unsafe impl Sync for Once {}
124124#[ stable( feature = "rust1" , since = "1.0.0" ) ]
125125unsafe impl Send for Once { }
126126
127- #[ stable( feature = "sync_once_ref_unwind_safe " , since = "1.59.0" ) ]
127+ #[ stable( feature = "sync_once_unwind_safe " , since = "1.59.0" ) ]
128128impl UnwindSafe for Once { }
129129
130+ #[ stable( feature = "sync_once_unwind_safe" , since = "1.59.0" ) ]
131+ impl RefUnwindSafe for Once { }
132+
130133/// State yielded to [`Once::call_once_force()`]’s closure parameter. The state
131134/// can be used to query the poison status of the [`Once`].
132135#[ stable( feature = "once_poison" , since = "1.51.0" ) ]
You can’t perform that action at this time.
0 commit comments