Skip to content

Commit cc990b7

Browse files
max-hellerRalfJung
andauthored
Apply suggestions from code review
Co-authored-by: Ralf Jung <[email protected]>
1 parent 6f688d5 commit cc990b7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/fail/leak_in_tls.rs

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
use std::cell::Cell;
77

8+
/// Ensure that leaks through `thread_local` statics *not in the main thread*
9+
/// are detected.
810
pub fn main() {
911
#[thread_local]
1012
static TLS: Cell<Option<&'static i32>> = Cell::new(None);

tests/pass/issues/issue-miri-2881.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ignore-target-windows: Windows uses a different mechanism for `thread_local!`
12
#![feature(thread_local)]
23

34
use std::cell::Cell;

0 commit comments

Comments
 (0)