Skip to content

Consider printing the query stack on ICE, even without RUST_BACKTRACE. #70287

Open
@eddyb

Description

@eddyb

It's valuable information, including to the user, since it may point to a very specific part of the code (before they even report the ICE to us), and it's always available (even without debuginfo).

We could even print the query stack like a set of diagnostic messages, highlighting the span that was provided with tcx.at(span) (if any) - I guess we have the code for it, for query cycles?

cc @rust-lang/compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-backtraceArea: BacktracesA-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions