-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
add -Zunpretty=hir-tree #45721
add -Zunpretty=hir-tree #45721
Conversation
This uses the debug impls to dump the raw HIR. Particularly useful when learning how the compiler works.
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
👍 useful |
You can also do Er, I meant I'd really like to change |
Could you add a |
@arielb1 good question. It does seem useful to have a test -- but I am not super keen about periodically updating it with new HIR. I guess we could just check that it emits something non-empty or perhaps something with a few strings (e.g., names of the functions)? |
Sure, just running it, seeing that it doesn't crash, and seeing that e.g. a string literal from the code appears in the HIR should work. |
Greetings from triage, @nikomatsakis! It's been a week since we last heard from you here — will you be able to add the requested tests sometime soon? |
@shepmaster I will, I'm just slow. =) |
9565247
to
2e66d79
Compare
Akin to the existing expanded test.
2e66d79
to
61f31fd
Compare
Added a test. |
@bors r+ |
📌 Commit 61f31fd has been approved by |
⌛ Testing commit 61f31fd with merge 2591df308e0af291feaf1161a7751f002bcd41da... |
add -Zunpretty=hir-tree This uses the debug impls to dump the raw HIR. Particularly useful when learning how the compiler works. cc @qmx
☀️ Test successful - status-appveyor, status-travis |
Add missing unpretty option help message There are some missing help messages that is printed `ructc -Zunpretty help` and receiving invalid option. related with rust-lang#16419, rust-lang#45721, rust-lang#21085, rust-lang#31916
Add missing unpretty option help message There are some missing help messages that is printed `ructc -Zunpretty help` and receiving invalid option. related with rust-lang#16419, rust-lang#45721, rust-lang#21085, rust-lang#31916
This uses the debug impls to dump the raw HIR. Particularly useful when
learning how the compiler works.
cc @qmx