Skip to content

Sync implementation constraints for RawOccupiedEntryMut #302

@ajtribick

Description

@ajtribick

The implementation of sync for RawOccupiedEntryMut looks like

unsafe impl<K, V, S, A> Sync for RawOccupiedEntryMut<'_, K, V, S, A>
where
    K: Sync,
    V: Sync,
    A: Send + Allocator + Clone,
{
}

Is the requirement that A be Send correct here, or should this be Sync? E.g. the equivalent implementation on OccupiedEntry requires A: Sync + Allocator + Clone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions