Skip to content
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

Document more of how to debug HIR #1159

Open
rylev opened this issue Jul 1, 2021 · 1 comment
Open

Document more of how to debug HIR #1159

rylev opened this issue Jul 1, 2021 · 1 comment
Labels
A-contributor-onboarding Area: contributor on-boarding advice (e.g. for new contributors) A-HIR Area: high-level intermediate representation (HIR) E-medium Difficulty: might require some prior knowledge or code reading I-terse Issue: info is very terse T-compiler Relevant to compiler team

Comments

@rylev
Copy link
Member

rylev commented Jul 1, 2021

There is the beginnings of a chapter on debugging the HIR, but it is pretty sparse. Is there more or can this be moved somewhere else?

eopb added a commit to eopb/rustc-dev-guide that referenced this issue Oct 10, 2023
Previously at no point in the guide did we recommend `unpretty=hir`, only `unpretty=hir-tree`. I'm not sure if `unpretty=hir-tree` existed when this chapter was written.

related: rust-lang#1159

I noticed that there's some duplicate information between here and the parent chapter https://rustc-dev-guide.rust-lang.org/hir.html I may try to merge https://rustc-dev-guide.rust-lang.org/hir-debugging.html into its parent in another PR.
eopb added a commit to eopb/rustc-dev-guide that referenced this issue Oct 10, 2023
Previously at no point in the guide did we recommend `unpretty=hir`, only `unpretty=hir-tree`. I'm not sure if `unpretty=hir-tree` existed when this chapter was written.

related: rust-lang#1159

I noticed that there's some duplicate information between here and the parent chapter https://rustc-dev-guide.rust-lang.org/hir.html I may try to merge https://rustc-dev-guide.rust-lang.org/hir-debugging.html into its parent in another PR.
compiler-errors pushed a commit that referenced this issue Oct 18, 2023
Previously at no point in the guide did we recommend `unpretty=hir`, only `unpretty=hir-tree`. I'm not sure if `unpretty=hir-tree` existed when this chapter was written.

related: #1159

I noticed that there's some duplicate information between here and the parent chapter https://rustc-dev-guide.rust-lang.org/hir.html I may try to merge https://rustc-dev-guide.rust-lang.org/hir-debugging.html into its parent in another PR.
@jieyouxu jieyouxu added A-HIR Area: high-level intermediate representation (HIR) I-terse Issue: info is very terse A-contributor-onboarding Area: contributor on-boarding advice (e.g. for new contributors) T-compiler Relevant to compiler team E-medium Difficulty: might require some prior knowledge or code reading labels Nov 2, 2024
@jieyouxu
Copy link
Member

jieyouxu commented Nov 2, 2024

Triage: this is still fairly sparse, especially cf. #1167 how HIR is structued, what do the pieces mean, etc.

Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
Previously at no point in the guide did we recommend `unpretty=hir`, only `unpretty=hir-tree`. I'm not sure if `unpretty=hir-tree` existed when this chapter was written.

related: rust-lang/rustc-dev-guide#1159

I noticed that there's some duplicate information between here and the parent chapter https://rustc-dev-guide.rust-lang.org/hir.html I may try to merge https://rustc-dev-guide.rust-lang.org/hir-debugging.html into its parent in another PR.
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
Previously at no point in the guide did we recommend `unpretty=hir`, only `unpretty=hir-tree`. I'm not sure if `unpretty=hir-tree` existed when this chapter was written.

related: rust-lang/rustc-dev-guide#1159

I noticed that there's some duplicate information between here and the parent chapter https://rustc-dev-guide.rust-lang.org/hir.html I may try to merge https://rustc-dev-guide.rust-lang.org/hir-debugging.html into its parent in another PR.
Kobzol pushed a commit to Kobzol/rustc-dev-guide that referenced this issue Jan 3, 2025
Previously at no point in the guide did we recommend `unpretty=hir`, only `unpretty=hir-tree`. I'm not sure if `unpretty=hir-tree` existed when this chapter was written.

related: rust-lang#1159

I noticed that there's some duplicate information between here and the parent chapter https://rustc-dev-guide.rust-lang.org/hir.html I may try to merge https://rustc-dev-guide.rust-lang.org/hir-debugging.html into its parent in another PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-contributor-onboarding Area: contributor on-boarding advice (e.g. for new contributors) A-HIR Area: high-level intermediate representation (HIR) E-medium Difficulty: might require some prior knowledge or code reading I-terse Issue: info is very terse T-compiler Relevant to compiler team
Projects
None yet
Development

No branches or pull requests

2 participants