Skip to content

Replace SourceRootCrates hashset output with slice for deterministic order #16339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jan 10, 2024

We only iterate over the result, and its pretty small in general so no point for the HashSet (additionally this way we get a more defined iteration order).

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 10, 2024
@Veykril
Copy link
Member Author

Veykril commented Jan 10, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Jan 10, 2024

📌 Commit 4d3a0dc has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jan 10, 2024

⌛ Testing commit 4d3a0dc with merge e4344f5...

@bors
Copy link
Contributor

bors commented Jan 10, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing e4344f5 to master...

@bors bors merged commit e4344f5 into rust-lang:master Jan 10, 2024
Arc::new(res)
.collect::<FxHashSet<_>>()
.into_iter()
.collect()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we sort here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I had that before but then rewrote this incorrectly (was contemplating using itertools or not) 😅

@Veykril Veykril deleted the hashmaps branch September 9, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants