Skip to content

Commit 7e0db67

Browse files
committed
Remove redundant allow(static_mut_refs)
1 parent 43d3470 commit 7e0db67

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

library/panic_unwind/src/seh.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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))]
267264
pub 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))]
331325
pub 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.

library/std/src/panicking.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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))]
343340
pub mod panic_count {
344341
use crate::cell::Cell;
345342
use crate::sync::atomic::{AtomicUsize, Ordering};

library/std/src/thread/local.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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))]
185183
macro_rules! thread_local {
186184
// empty (base case for the recursion)
187185
() => {};

0 commit comments

Comments
 (0)