File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ mod tests;
90
90
use crate :: cell:: Cell ;
91
91
use crate :: fmt;
92
92
use crate :: marker;
93
- use crate :: panic:: UnwindSafe ;
93
+ use crate :: panic:: { RefUnwindSafe , UnwindSafe } ;
94
94
use crate :: sync:: atomic:: { AtomicBool , AtomicUsize , Ordering } ;
95
95
use crate :: thread:: { self , Thread } ;
96
96
@@ -124,9 +124,12 @@ unsafe impl Sync for Once {}
124
124
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
125
125
unsafe impl Send for Once { }
126
126
127
- #[ stable( feature = "sync_once_ref_unwind_safe " , since = "1.59.0" ) ]
127
+ #[ stable( feature = "sync_once_unwind_safe " , since = "1.59.0" ) ]
128
128
impl UnwindSafe for Once { }
129
129
130
+ #[ stable( feature = "sync_once_unwind_safe" , since = "1.59.0" ) ]
131
+ impl RefUnwindSafe for Once { }
132
+
130
133
/// State yielded to [`Once::call_once_force()`]’s closure parameter. The state
131
134
/// can be used to query the poison status of the [`Once`].
132
135
#[ stable( feature = "once_poison" , since = "1.51.0" ) ]
You can’t perform that action at this time.
0 commit comments