File tree Expand file tree Collapse file tree 3 files changed +0
-11
lines changed Expand file tree Collapse file tree 3 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -261,9 +261,6 @@ cfg_if::cfg_if! {
261
261
}
262
262
}
263
263
264
- // FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
265
- #[ cfg_attr( bootstrap, allow( static_mut_ref) ) ]
266
- #[ cfg_attr( not( bootstrap) , allow( static_mut_refs) ) ]
267
264
pub unsafe fn panic ( data : Box < dyn Any + Send > ) -> u32 {
268
265
use core:: intrinsics:: atomic_store_seqcst;
269
266
@@ -325,9 +322,6 @@ pub unsafe fn panic(data: Box<dyn Any + Send>) -> u32 {
325
322
_CxxThrowException ( throw_ptr, & mut THROW_INFO as * mut _ as * mut _ ) ;
326
323
}
327
324
328
- // FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
329
- #[ cfg_attr( bootstrap, allow( static_mut_ref) ) ]
330
- #[ cfg_attr( not( bootstrap) , allow( static_mut_refs) ) ]
331
325
pub unsafe fn cleanup ( payload : * mut u8 ) -> Box < dyn Any + Send > {
332
326
// A null payload here means that we got here from the catch (...) of
333
327
// __rust_try. This happens when a non-Rust foreign exception is caught.
Original file line number Diff line number Diff line change @@ -337,9 +337,6 @@ pub mod panic_count {
337
337
#[ doc( hidden) ]
338
338
#[ cfg( not( feature = "panic_immediate_abort" ) ) ]
339
339
#[ unstable( feature = "update_panic_count" , issue = "none" ) ]
340
- // FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
341
- #[ cfg_attr( bootstrap, allow( static_mut_ref) ) ]
342
- #[ cfg_attr( not( bootstrap) , allow( static_mut_refs) ) ]
343
340
pub mod panic_count {
344
341
use crate :: cell:: Cell ;
345
342
use crate :: sync:: atomic:: { AtomicUsize , Ordering } ;
Original file line number Diff line number Diff line change @@ -180,8 +180,6 @@ impl<T: 'static> fmt::Debug for LocalKey<T> {
180
180
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
181
181
#[ cfg_attr( not( test) , rustc_diagnostic_item = "thread_local_macro" ) ]
182
182
#[ allow_internal_unstable( thread_local_internals) ]
183
- // FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
184
- #[ cfg_attr( not( bootstrap) , allow( static_mut_refs) ) ]
185
183
macro_rules! thread_local {
186
184
// empty (base case for the recursion)
187
185
( ) => { } ;
You can’t perform that action at this time.
0 commit comments