remove the T: Sync requirement for RwLock<T>: 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
380d23b5d4,
but it's not clear why.
This commit is contained in:
parent
6cb49d2a3e
commit
fbf6885fd3
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ pub struct RwLock<T: ?Sized> {
|
|||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
unsafe impl<T: ?Sized + Send + Sync> Send for RwLock<T> {}
|
||||
unsafe impl<T: ?Sized + Send> Send for RwLock<T> {}
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
unsafe impl<T: ?Sized + Send + Sync> Sync for RwLock<T> {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue