-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Return an indexmap in all_local_trait_impls
query
#93312
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
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
1390750
to
7e21dc3
Compare
This comment has been minimized.
This comment has been minimized.
7e21dc3
to
b2054cf
Compare
@rustbot author |
This comment has been minimized.
This comment has been minimized.
b2054cf
to
6dcf242
Compare
The data structure previously used here required Ord. As part of rust-lang#90317, we do not want DefId to implement Ord.
6dcf242
to
f5fe6cd
Compare
all_local_trait_impls
queryall_local_trait_impls
query
I tried this with |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit f5fe6cd with merge fdfba66d9cef8e970a1c68a4b6fef10362925a7f... |
☀️ Try build successful - checks-actions |
Queued fdfba66d9cef8e970a1c68a4b6fef10362925a7f with parent 8cdb3cd, future comparison URL. |
@rustbot ready |
Finished benchmarking commit (fdfba66d9cef8e970a1c68a4b6fef10362925a7f): comparison url. Summary: This benchmark run did not return any relevant results. 32 results were found to be statistically significant but too small to be relevant. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. @bors rollup=never |
IndexMap is fine as long as it is constructed in a deterministic way. Do we know if that is the case here? |
I'm not sure. Is this where the IndexMap would end up being constructed? rust/compiler/rustc_middle/src/hir/mod.rs Line 109 in f5fe6cd
In that case, looks like the determinism would depend on |
|
@bors r+ rollup=iffy |
📌 Commit f5fe6cd has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7cd14d2): comparison url. Summary: This benchmark run shows 4 relevant improvements 🎉 but 4 relevant regressions 😿 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
The data structure previously used here required that
DefId
beOrd
. As part of #90317, we do not wantDefId
to implementOrd
.