Skip to content

Refactor query latch#155881

Open
zetanumbers wants to merge 1 commit intorust-lang:mainfrom
zetanumbers:refactor-query-latch
Open

Refactor query latch#155881
zetanumbers wants to merge 1 commit intorust-lang:mainfrom
zetanumbers:refactor-query-latch

Conversation

@zetanumbers
Copy link
Copy Markdown
Contributor

@zetanumbers zetanumbers commented Apr 27, 2026

This PR removes unnecessary mutex for cycle errors. This is revival of #153779. Previously we could have to stored a cycle error per each query waiter in the cycle thus requiring a mutex for cycle error in each query waiter. However as #154973 has been merged query cycles break only on a single query so that QueryLatch can contain a single Option<Cycle> field.

r? @nnethercote

Removed unnecessary mutex for cycle errors
@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 27, 2026
@zetanumbers
Copy link
Copy Markdown
Contributor Author

cc @Zoxc

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-review Status: Awaiting review from the assignee but also interested parties. 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