Skip to content

lint internally mutable keys in maps #729

Closed
@llogiq

Description

@llogiq

I'm not sure if this is actually possible, but it is a logic error to change keys in hashmaps or btreemaps. So if we can identify common types with interior mutability, we could warn when finding those types as keys in a map.

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