Skip to content
Closed
1 change: 1 addition & 0 deletions library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@
#![feature(edition_panic)]
#![feature(format_args_nl)]
#![feature(log_syntax)]
#![feature(nonpoison_mutex)]
#![feature(test)]
#![feature(trace_macros)]
// tidy-alphabetical-end
Expand Down
2 changes: 2 additions & 0 deletions library/std/src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ pub use self::poison::{MappedMutexGuard, MappedRwLockReadGuard, MappedRwLockWrit
#[unstable(feature = "mpmc_channel", issue = "126840")]
pub mod mpmc;
pub mod mpsc;
#[unstable(feature = "sync_nonpoison", issue = "134645")]
pub mod nonpoison;

#[unstable(feature = "sync_poison_mod", issue = "134646")]
pub mod poison;
Expand Down
10 changes: 10 additions & 0 deletions library/std/src/sync/nonpoison/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//! Non-poisoning syncronous locks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/syncronous/synchronous/

//!
//! The locks found on this module will not become poisoned when a thread panics whilst holding a guard.

#[unstable(feature = "sync_nonpoison", issue = "134645")]
pub use self::mutex::MappedMutexGuard;
#[unstable(feature = "sync_nonpoison", issue = "134645")]
pub use self::mutex::{Mutex, MutexGuard};

mod mutex;
Loading
Loading