-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Print query stack on ICEs #49222
Print query stack on ICEs #49222
Conversation
Can we get a review on this PR @eddyb (or someone else from @rust-lang/compiler)? |
LGTM. r? @nikomatsakis |
I think it would be preferable if we did this only when
|
Hmm I think I agree with @nagisa -- this feels like a ton of output to dump by default. But it seems very useful! |
I've changed it so it only prints the query stack when |
☔ The latest upstream changes (presumably #49045) made this pull request unmergeable. Please resolve the merge conflicts. |
Your PR failed on Travis. Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Your PR failed on Travis. Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r+ |
📌 Commit 4fd188e has been approved by |
Print query stack on ICEs ICE output is now: ``` thread 'rustc' panicked at 'no borrowck', librustc_borrowck\borrowck\mod.rs:95:5 note: Run with `RUST_BACKTRACE=1` for a backtrace. query stack during panic: #0 [borrowck] processing `main` --> no-std.rs:10:1 | 10 | fn main() {} | ^^^^^^^^^ end of query stack error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: rustc 1.26.0-dev running on x86_64-pc-windows-msvc ``` Fixes #42529. r? @eddyb
☀️ Test successful - status-appveyor, status-travis |
ICE output is now:
Fixes #42529.
r? @eddyb