Skip to content

Consider use of IndexMap::(swap_)remove and IndexSet::(swap_)remove #120456

Description

@clubby789

#120454 (comment)

indexmap 2.2.0 made the remove methods deprecated, as they forward directly to swap_remove. #120454 will update these callsites to use swap_remove, but we should consider if this is the correct behaviour. Alternatives are shift_remove (invalidating existing indexes) or using a different map.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions