std::collections::hash_map::{Entry, OccupiedEntry, VacantEntry} are never Send/Sync #45219
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, the
HashMap
entry types are neverSend
orSync
. It seems to me that theEntry
types should beSend
whenever their key/value types areSend
andSync
whenever their key/value types areSync
. Properly implementingSend
/Sync
forOccupiedEntry
andVacantEntry
will solve the problem forEntry
as well. Is there any known reason whyEntry
and friends should not beSend
orSync
?The text was updated successfully, but these errors were encountered: