Skip to content

Commit 76bcc93

Browse files
committed
move tests to tests/sync/nonpoison/
1 parent b15961c commit 76bcc93

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

library/std/src/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ pub use self::poison::{MappedMutexGuard, MappedRwLockReadGuard, MappedRwLockWrit
224224
#[unstable(feature = "mpmc_channel", issue = "126840")]
225225
pub mod mpmc;
226226
pub mod mpsc;
227+
227228
#[unstable(feature = "sync_nonpoison", issue = "134645")]
228229
pub mod nonpoison;
229-
230230
#[unstable(feature = "sync_poison_mod", issue = "134646")]
231231
pub mod poison;
232232

library/std/src/sync/nonpoison/mutex.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[cfg(all(test, not(any(target_os = "emscripten", target_os = "wasi"))))]
2-
mod tests;
3-
41
use crate::cell::UnsafeCell;
52
use crate::fmt;
63
use crate::marker::PhantomData;

library/std/tests/sync/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ mod once_lock;
2020
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
2121
mod reentrant_lock;
2222

23+
mod nonpoison;
2324
mod poison;
2425

2526
#[path = "../common/mod.rs"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#[cfg(not(any(target_os = "emscripten", target_os = "wasi")))]
2+
mod mutex;

0 commit comments

Comments
 (0)