Get rid of some #[allow(static_mut_refs)]

This commit is contained in:
Pavel Grigorenko
2024-02-23 14:09:37 +03:00
parent 52cea084bd
commit 58c8c0853f
6 changed files with 31 additions and 42 deletions

View File

@@ -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)
() => {};