Uh oh!
There was an error while loading. Please reload this page.
Make def names and HIR names consistent. - #95435
Conversation
rust-highfive
commented
Mar 29, 2022
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
cjgillot
commented
Mar 29, 2022
@bors try @rust-timer queue |
rust-timer
commented
Mar 29, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Mar 29, 2022
⌛ Trying commit 79010104f47e9a435ef49a7f4b40f0f84a56dda5 with merge 570bb0da8027dcda69858fc2b200800fd580563c... |
bors
commented
Mar 29, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
Mar 29, 2022
Queued 570bb0da8027dcda69858fc2b200800fd580563c with parent 11909e3, future comparison URL. |
rust-timer
commented
Mar 29, 2022
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 |
cjgillot
commented
Mar 30, 2022
@bors try @rust-timer queue |
rust-timer
commented
Mar 30, 2022
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
bors
commented
Mar 30, 2022
⌛ Trying commit e71dc40236621ccbdb1ba6cea4aab5a6ccb3d2c8 with merge b3ca67599d9fad163470e4584416fc676a8fb6a9... |
bors
commented
Mar 30, 2022
☀️ Try build successful - checks-actions |
rust-timer
commented
Mar 30, 2022
Queued b3ca67599d9fad163470e4584416fc676a8fb6a9 with parent 3e75146, future comparison URL. |
rust-timer
commented
Mar 30, 2022
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 |
Uh oh!
There was an error while loading. Please reload this page.
oli-obk
commented
Apr 3, 2022
r? @oli-obk |
oli-obk
left a comment
There was a problem hiding this comment.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Apr 5, 2022
☔ The latest upstream changes (presumably #95667) made this pull request unmergeable. Please resolve the merge conflicts. |
oli-obk
commented
Apr 9, 2022
@bors r+ |
bors
commented
Apr 9, 2022
📌 Commit 672ce15 has been approved by |
bors
commented
Apr 9, 2022
bors
commented
Apr 10, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Apr 10, 2022
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
DefKeyis 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_nameused a dummy span for non-localdefinitions. We have access to
def_ident_span, so we use it.