From fbf6885fd3ebc28a94007ab032ef1c9f135a0b69 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Fri, 13 Oct 2017 18:54:49 -0400 Subject: [PATCH] remove the `T: Sync` requirement for `RwLock: Send` That requirement makes sense for containers like `Arc` that don't uniquely own their contents, but `RwLock` is not one of those. This restriction was added in https://github.com/rust-lang/rust/commit/380d23b5d4b9fb8f5f0ebf178590f61528b2483e, but it's not clear why. --- src/libstd/sync/rwlock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 5c49d6b58459c..5555f364e6e8d 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -82,7 +82,7 @@ pub struct RwLock { } #[stable(feature = "rust1", since = "1.0.0")] -unsafe impl Send for RwLock {} +unsafe impl Send for RwLock {} #[stable(feature = "rust1", since = "1.0.0")] unsafe impl Sync for RwLock {}