Shorten backtraces in ICEs #107910
Labels
A-contributor-roadblock
Area: Makes things more difficult for new or seasoned contributors to Rust
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Right now, the backtraces in an ICE are almost unreadably long (250+ frames, sometimes as much as 400+). See message.txt for an example.
Most of these frames are not particularly useful. Consider for example this snippet:
rustc_query_impl plumbing
The only useful information here is "the type_of query was run", but it takes up 140 lines and 70 frames of the backtrace.
We should collapse these unless the user opts-in: I'm imagining something like setting RUSTC_BACKTRACE=1 which hides the frames by default and RUSTC_BACKTRACE=full which expands them.
The text was updated successfully, but these errors were encountered: