Skip to content

hash_map::IterMut changed Send bounds with hashbrown #61357

Closed
@cuviper

Description

@cuviper

In 1.35, IterMut's Send requires K: Send, but in 1.36-beta it requires K: Sync. Both are auto-derived, so it must be a change in their internals. Obviously, hashbrown is quite different than the old implementation.

https://doc.rust-lang.org/1.35.0/std/collections/hash_map/struct.IterMut.html#impl-Send
image

https://doc.rust-lang.org/beta/std/collections/hash_map/struct.IterMut.html#impl-Send
image

Ditto for ValuesMut. I'm not sure if there's any real impact in this, but it should be considered, and perhaps audit for other similar changes.

cc @Amanieu, as discussed on IRC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-collectionsArea: `std::collections`C-bugCategory: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions