Bounds for RwLock<T>: Send
are unnecessarily restrictive
#42934
Labels
C-feature-accepted
Category: A feature request that has been accepted pending implementation.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Currently,
RwLock<T>: Send
requiresT: Send
andT: Sync
. It would be sufficient to requiresT: Send
. (Transmitting anRwLock
can't move an&T
across thread boundaries.)Is there interest in relaxing these kinds of bounds? Or, maybe, at least document the fact that the bounds could be more relaxed in the source?
The text was updated successfully, but these errors were encountered: