diff options
| author | Pavel Grigorenko <grigorenkopv@ya.ru> | 2024-02-23 14:09:37 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <grigorenkopv@ya.ru> | 2024-02-23 18:02:25 +0300 |
| commit | 58c8c0853f08d83a86edfc9cd73463ff29f0509f (patch) | |
| tree | d14629ba3280f10d633048e690650eb053c05dc6 /library/std/src | |
| parent | 52cea084bd5bbac12ecfa5c0499f5c777025c968 (diff) | |
| download | rust-58c8c0853f08d83a86edfc9cd73463ff29f0509f.tar.gz rust-58c8c0853f08d83a86edfc9cd73463ff29f0509f.zip | |
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) () => {}; |
