-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Make def names and HIR names consistent. #95435
Conversation
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 79010104f47e9a435ef49a7f4b40f0f84a56dda5 with merge 570bb0da8027dcda69858fc2b200800fd580563c... |
☀️ Try build successful - checks-actions |
Queued 570bb0da8027dcda69858fc2b200800fd580563c with parent 11909e3, future comparison URL. |
Finished benchmarking commit (570bb0da8027dcda69858fc2b200800fd580563c): comparison url. Summary: This benchmark run did not return any relevant results. 4 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 |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit e71dc40236621ccbdb1ba6cea4aab5a6ccb3d2c8 with merge b3ca67599d9fad163470e4584416fc676a8fb6a9... |
☀️ Try build successful - checks-actions |
Queued b3ca67599d9fad163470e4584416fc676a8fb6a9 with parent 3e75146, future comparison URL. |
Finished benchmarking commit (b3ca67599d9fad163470e4584416fc676a8fb6a9): comparison url. Summary: This benchmark run did not return any relevant results. 3 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 |
r? @oli-obk |
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.
I'll look into compiletest changes next week. I wanted to add a way to add defaults for the comment-configs of ui tests anyway, and we could use that to insert a filter for all crates.io crate paths
src/test/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.stderr
Outdated
Show resolved
Hide resolved
☔ The latest upstream changes (presumably #95667) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r+ |
📌 Commit 672ce15 has been approved by |
☀️ Test successful - checks-actions |
This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. |
Avoid accessing HIR from MIR passes `hir_owner_nodes` contains a lot of information, and the query result is typically dirty. This forces dependent queries to be re-executed needlessly. This PR refactors some accesses to HIR to go through more targeted queries that yield the same result. Based on rust-lang#95435 and rust-lang#95436
The name in the
DefKey
is interned to create theDefId
, so it does notrequire any query to access. This can be leveraged to avoid a few useless
HIR accesses for names.
In order to achieve that, generic parameters created from universal
impl-trait are given the pretty-printed ast as a name, instead of
{{opaque}}
.Drive-by: theTyCtxt::opt_item_name
used a dummy span for non-localdefinitions. We have access to
def_ident_span
, so we use it.