Repository navigation
Add DenseMap - #164740
Add DenseMap#164740susitsm wants to merge 4 commits into
Conversation
|
@aerooneqq this surfaced 2 places (1, 2), I think mostly for debugging output, where iteration order should be considered for |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Sort by stable hashes maybe? Recently we merged (#163668) the remapping for syntax contexts and local expansions which sorts them by stable hash, as this is used in pretty print only this sort should not cause perf troubles. |
|
☔ The latest upstream changes (presumably #164757) made this pull request unmergeable. Please resolve the merge conflicts by rebasing. |
Adds
DenseMap,DenseMapRefandDenseKeyas alternatives forIndexVec,IndexSliceandIdxand replacesIdxwithDensKeyforSyntaxContext,LocalExpnId,LocalDefId,OwnerIdMotivation:
IndexVecallows iteration, which should not be allowed for some index types, as it can result in nondeterminism.