Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
max-heller and RalfJung authored Aug 16, 2023
1 parent 6f688d5 commit cc990b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/fail/leak_in_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

use std::cell::Cell;

/// Ensure that leaks through `thread_local` statics *not in the main thread*
/// are detected.
pub fn main() {
#[thread_local]
static TLS: Cell<Option<&'static i32>> = Cell::new(None);
Expand Down
1 change: 1 addition & 0 deletions tests/pass/issues/issue-miri-2881.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ignore-target-windows: Windows uses a different mechanism for `thread_local!`
#![feature(thread_local)]

use std::cell::Cell;
Expand Down

0 comments on commit cc990b7

Please sign in to comment.