about summary refs log tree commit diff
path: root/src/libstd/sync/mutex.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-25 10:29:32 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-25 10:29:32 +0530
commit7b7cf84975fa9da0a301028b28be8b255f2fcd6f (patch)
treee985761985f645eb793cb69950bacd9321265b0e /src/libstd/sync/mutex.rs
parentc950ee93c95d9cfe68ed431bdc45cea67a554757 (diff)
parent64fe93e49dc0c6a552c5f08507064f2ce12800ca (diff)
downloadrust-7b7cf84975fa9da0a301028b28be8b255f2fcd6f.tar.gz
rust-7b7cf84975fa9da0a301028b28be8b255f2fcd6f.zip
Rollup merge of #22596 - alexcrichton:fix-some-impls, r=huonw
 This commit removes many unnecessary `unsafe impl` blocks as well as pushing the
needed implementations to the lowest level possible. I noticed that the bounds
for `RwLock` are a little off when reviewing #22574 and wanted to ensure that we
had our story straight on these implementations.
Diffstat (limited to 'src/libstd/sync/mutex.rs')
-rw-r--r--src/libstd/sync/mutex.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs
index 02b2db572ec..b9785f20440 100644
--- a/src/libstd/sync/mutex.rs
+++ b/src/libstd/sync/mutex.rs
@@ -152,8 +152,6 @@ pub struct StaticMutex {
     poison: poison::Flag,
 }
 
-unsafe impl Sync for StaticMutex {}
-
 /// An RAII implementation of a "scoped lock" of a mutex. When this structure is
 /// dropped (falls out of scope), the lock will be unlocked.
 ///