We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f688d5 commit cc990b7Copy full SHA for cc990b7
tests/fail/leak_in_tls.rs
@@ -5,6 +5,8 @@
5
6
use std::cell::Cell;
7
8
+/// Ensure that leaks through `thread_local` statics *not in the main thread*
9
+/// are detected.
10
pub fn main() {
11
#[thread_local]
12
static TLS: Cell<Option<&'static i32>> = Cell::new(None);
tests/pass/issues/issue-miri-2881.rs
@@ -1,3 +1,4 @@
1
+//@ignore-target-windows: Windows uses a different mechanism for `thread_local!`
2
#![feature(thread_local)]
3
4
0 commit comments