about summary refs log tree commit diff
path: root/library/std/src/thread/local/tests.rs
diff options
context:
space:
mode:
authorObei Sideg <obei.sideg@gmail.com>2024-08-24 06:49:09 +0300
committerObei Sideg <obei.sideg@gmail.com>2024-09-13 14:10:56 +0300
commit3b0ce1bc33d30d7d116ee9af60df873e04bd74dc (patch)
treed6f3aef62b82ac74c47a292c38caee216e56c77b /library/std/src/thread/local/tests.rs
parent74cab947f79045e34eb973199274ee5f3c132bd8 (diff)
downloadrust-3b0ce1bc33d30d7d116ee9af60df873e04bd74dc.tar.gz
rust-3b0ce1bc33d30d7d116ee9af60df873e04bd74dc.zip
Update tests for hidden references to mutable static
Diffstat (limited to 'library/std/src/thread/local/tests.rs')
-rw-r--r--library/std/src/thread/local/tests.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/thread/local/tests.rs b/library/std/src/thread/local/tests.rs
index 25019b554bb..6abb9b85a2e 100644
--- a/library/std/src/thread/local/tests.rs
+++ b/library/std/src/thread/local/tests.rs
@@ -103,6 +103,9 @@ fn smoke_dtor() {
 
 #[test]
 fn circular() {
+    // FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
+    #![allow(static_mut_refs)]
+
     struct S1(&'static LocalKey<UnsafeCell<Option<S1>>>, &'static LocalKey<UnsafeCell<Option<S2>>>);
     struct S2(&'static LocalKey<UnsafeCell<Option<S1>>>, &'static LocalKey<UnsafeCell<Option<S2>>>);
     thread_local!(static K1: UnsafeCell<Option<S1>> = UnsafeCell::new(None));