Skip to content

Commit 6368fbb

Browse files
committed
move poison lock tests to poison module
This commit moves the locks under the `poison` module to a dedicated `poison` module
1 parent 5795086 commit 6368fbb

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

library/std/tests/sync/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,18 @@
99
#![allow(internal_features)]
1010

1111
mod barrier;
12-
mod condvar;
1312
mod lazy_lock;
1413
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
1514
mod mpmc;
1615
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
1716
mod mpsc;
1817
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
1918
mod mpsc_sync;
20-
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
21-
mod mutex;
22-
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
23-
mod once;
2419
mod once_lock;
2520
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
2621
mod reentrant_lock;
27-
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
28-
mod rwlock;
22+
23+
mod poison;
2924

3025
#[path = "../common/mod.rs"]
3126
mod common;

library/std/tests/sync/poison/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mod condvar;
2+
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
3+
mod mutex;
4+
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
5+
mod once;
6+
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
7+
mod rwlock;

0 commit comments

Comments
 (0)