-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
@bors r+ |
☀️ Test successful - checks-actions |
Arc::new(res) | ||
.collect::<FxHashSet<_>>() | ||
.into_iter() | ||
.collect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we sort here?
There was a problem hiding this comment.
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) 😅
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).