Skip to content

QueryLatch cleanups#153595

Open
nnethercote wants to merge 2 commits intorust-lang:mainfrom
nnethercote:QueryLatch-cleanups
Open

QueryLatch cleanups#153595
nnethercote wants to merge 2 commits intorust-lang:mainfrom
nnethercote:QueryLatch-cleanups

Conversation

@nnethercote
Copy link
Contributor

A couple of small improvements I found while reading through this code.

r? @petrochenkov

@rustbot rustbot added 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 Mar 9, 2026
@nnethercote
Copy link
Contributor Author

@Zoxc, @zetanumbers: I don't think this conflicts with any of your open PRs, but let me know if I'm wrong about that.

This commit moves the handling of the trivial "complete" case to the
top of the method. This avoids uselessly constructing a waiter in that
case. It also avoids the need for a separate block scope for `info`.
@nnethercote nnethercote force-pushed the QueryLatch-cleanups branch from ce2fdaf to f2cf26f Compare March 9, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants