Skip to content

Add tracking of query call locations#154402

Draft
Zoxc wants to merge 5 commits intorust-lang:mainfrom
Zoxc:query-call-tracking
Draft

Add tracking of query call locations#154402
Zoxc wants to merge 5 commits intorust-lang:mainfrom
Zoxc:query-call-tracking

Conversation

@Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Mar 26, 2026

This adds tracking of query call locations using #[track_caller] in additional to associating query calls with a span.

Query call locations are printed for query panic stack traces and for -Z verbose-internals. The latter being helpful to track down accidental query cycles.

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 26, 2026
@rust-log-analyzer

This comment has been minimized.

@Zoxc Zoxc force-pushed the query-call-tracking branch from f641c01 to 4197e18 Compare March 26, 2026 05:53
@rust-log-analyzer

This comment has been minimized.

@Zoxc Zoxc force-pushed the query-call-tracking branch from 4197e18 to 3ac1303 Compare March 26, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants