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! {
261261 }
262262}
263263
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) ) ]
267264pub unsafe fn panic ( data : Box < dyn Any + Send > ) -> u32 {
268265 use core:: intrinsics:: atomic_store_seqcst;
269266
@@ -325,9 +322,6 @@ pub unsafe fn panic(data: Box<dyn Any + Send>) -> u32 {
325322 _CxxThrowException ( throw_ptr, & mut THROW_INFO as * mut _ as * mut _ ) ;
326323}
327324
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) ) ]
331325pub unsafe fn cleanup ( payload : * mut u8 ) -> Box < dyn Any + Send > {
332326 // A null payload here means that we got here from the catch (...) of
333327 // __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 {
337337#[ doc( hidden) ]
338338#[ cfg( not( feature = "panic_immediate_abort" ) ) ]
339339#[ 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) ) ]
343340pub mod panic_count {
344341 use crate :: cell:: Cell ;
345342 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> {
180180#[ stable( feature = "rust1" , since = "1.0.0" ) ]
181181#[ cfg_attr( not( test) , rustc_diagnostic_item = "thread_local_macro" ) ]
182182#[ 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) ) ]
185183macro_rules! thread_local {
186184 // empty (base case for the recursion)
187185 ( ) => { } ;
You can’t perform that action at this time.
0 commit comments