-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Consider use of IndexMap::(swap_)remove and IndexSet::(swap_)remove #120456
Copy link
Copy link
Open
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.