diff options
| author | bors <bors@rust-lang.org> | 2024-02-23 18:52:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-23 18:52:47 +0000 |
| commit | 2dbd6233ccdb2cd4b621a5e839a95c3fbbc0c375 (patch) | |
| tree | 1eed8d33bc342172e0a9ccd589852f2409311dc9 /library/std/src | |
| parent | 21033f637e60af61ead04cc296e7214f89c16a95 (diff) | |
| parent | 58c8c0853f08d83a86edfc9cd73463ff29f0509f (diff) | |
| download | rust-2dbd6233ccdb2cd4b621a5e839a95c3fbbc0c375.tar.gz rust-2dbd6233ccdb2cd4b621a5e839a95c3fbbc0c375.zip | |
Auto merge of #121303 - GrigorenkoPV:static_mut_refs, r=oli-obk,RalfJung
Get rid of some `#![allow(static_mut_refs)]`
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/panicking.rs | 3 | ||||
| -rw-r--r-- | library/std/src/thread/local.rs | 2 |
2 files changed, 0 insertions, 5 deletions
diff --git a/library/std/src/panicking.rs b/library/std/src/panicking.rs index c8306c1b597..66b4ec37c8e 100644 --- a/library/std/src/panicking.rs +++ b/library/std/src/panicking.rs @@ -337,9 +337,6 @@ pub mod panic_count { #[doc(hidden)] #[cfg(not(feature = "panic_immediate_abort"))] #[unstable(feature = "update_panic_count", issue = "none")] -// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint -#[cfg_attr(bootstrap, allow(static_mut_ref))] -#[cfg_attr(not(bootstrap), allow(static_mut_refs))] pub mod panic_count { use crate::cell::Cell; use crate::sync::atomic::{AtomicUsize, Ordering}; diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index 34d30a259ee..fbb882e640b 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -180,8 +180,6 @@ impl<T: 'static> fmt::Debug for LocalKey<T> { #[stable(feature = "rust1", since = "1.0.0")] #[cfg_attr(not(test), rustc_diagnostic_item = "thread_local_macro")] #[allow_internal_unstable(thread_local_internals)] -// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint -#[cfg_attr(not(bootstrap), allow(static_mut_refs))] macro_rules! thread_local { // empty (base case for the recursion) () => {}; |
