about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-20 17:25:34 +0000
committerbors <bors@rust-lang.org>2024-09-20 17:25:34 +0000
commit5ba6db1b648d93fbbab4ae0466e40db682fa45fc (patch)
treec9c5732d1f0b4eee1f04aa23d4ff945545d2a698 /library/alloc/src
parentfb46739014564a3c709c43e1429a6a5d71c97e26 (diff)
parent3b0ce1bc33d30d7d116ee9af60df873e04bd74dc (diff)
downloadrust-5ba6db1b648d93fbbab4ae0466e40db682fa45fc.tar.gz
rust-5ba6db1b648d93fbbab4ae0466e40db682fa45fc.zip
Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errors
Disallow hidden references to mutable static

Closes #123060

Tracking:
- https://github.com/rust-lang/rust/issues/123758
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/linked_list/tests.rs3
-rw-r--r--library/alloc/src/collections/vec_deque/tests.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/library/alloc/src/collections/linked_list/tests.rs b/library/alloc/src/collections/linked_list/tests.rs
index 9b3c9ac5ce5..c93e5813b11 100644
--- a/library/alloc/src/collections/linked_list/tests.rs
+++ b/library/alloc/src/collections/linked_list/tests.rs
@@ -1,3 +1,6 @@
+// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
+#![allow(static_mut_refs)]
+
 use std::panic::{catch_unwind, AssertUnwindSafe};
 use std::thread;
 
diff --git a/library/alloc/src/collections/vec_deque/tests.rs b/library/alloc/src/collections/vec_deque/tests.rs
index f8ce4ca9788..c90679f1797 100644
--- a/library/alloc/src/collections/vec_deque/tests.rs
+++ b/library/alloc/src/collections/vec_deque/tests.rs
@@ -1,3 +1,6 @@
+// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
+#![allow(static_mut_refs)]
+
 use core::iter::TrustedLen;
 
 use super::*;