-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Fix debuginfo for pointers/references to unsized types #93006
Fix debuginfo for pointers/references to unsized types #93006
Conversation
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
f57d9de
to
3da8b15
Compare
☔ The latest upstream changes (presumably #93009) made this pull request unmergeable. Please resolve the merge conflicts. |
3da8b15
to
756a70c
Compare
This PR makes type names, that are part of a pointer type, fully qualified. For example, @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 756a70c with merge 5d8768a3a4a4ad49d5b52f745a6a48bda4ff3bf0... |
☀️ Try build successful - checks-actions |
Queued 5d8768a3a4a4ad49d5b52f745a6a48bda4ff3bf0 with parent 2f004d2, future comparison URL. |
Finished benchmarking commit (5d8768a3a4a4ad49d5b52f745a6a48bda4ff3bf0): comparison url. Summary: This benchmark run did not return any relevant changes. 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 |
This lgtm from a pure impl perspective, but I think someone who knows llvm should look over it r? rust-lang/wg-llvm |
r? @rust-lang/wg-llvm |
There doesn't seem to be an LLVM group in https://github.com/rust-lang/highfive/blob/master/highfive/configs/rust-lang/rust.json yet. r? @davidtwco, who knows debuginfo well (but feel free to re-assign if you don't want to review!) |
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.
This looks good to me, two small nits but otherwise I think this is good.
Thanks for the reviews! Comments should be addressed now. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ge doc comment so it is not interpreted as doc-test.
Fix doc-comment so it's not interpreted as doctest. @bors r=davidtwco,oli-obk |
📌 Commit d33e317 has been approved by |
⌛ Testing commit d33e317 with merge bcca153730480e04fc3eae2166fc3b6c07942047... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
…t mark fat pointer fields as artificial. LLDB does not seem to see fields if they are marked with DW_AT_artificial which breaks pretty printers that use these fields for decoding fat pointers.
The job Click to see the possible cause of the failure (guessed by this bot)
|
@rust-lang/infra This is the second time in this PR that there's a core dump in compiletest after mir-opt testing: https://github.com/rust-lang/rust/runs/4978717078?check_suite_focus=true#step:26:3567 |
I was able to reproduce the LLDB test failures on Linux. The last commit removes the @bors r=davidtwco,oli-obk |
📌 Commit c10f9e7 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (427eba2): comparison url. Summary: 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. @rustbot label: -perf-regression |
This PR makes the compiler emit fat pointer debuginfo in all cases. Before, we sometimes got thin-pointer debuginfo, making it impossible to fully interpret the pointed to memory in debuggers. The code is actually cleaner now, especially around generation of trait object pointer debuginfo.
Fixes #92718
Blocked on #92729.