Update test for E0796 and static_mut_ref lint

This commit is contained in:
Obei Sideg
2023-12-22 15:12:01 +03:00
parent 18edf9a64e
commit a8aa6878f6
54 changed files with 807 additions and 239 deletions

View File

@@ -180,6 +180,8 @@ 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_ref` lint
#[cfg_attr(not(bootstrap), allow(static_mut_ref))]
macro_rules! thread_local {
// empty (base case for the recursion)
() => {};