Skip to content

Conversation

@xizheyin
Copy link
Member

Refined some vague concepts and pseudo-code in Query System

In the past, we only used vague concepts like local and extern to differentiate between different queries. however the code has more detailed Providers and ExternProviders to differentiate between them, so we should mention both of them in the documentation as well.

It is also important to indicate that rustc_middle::util::Providers is made up of Providers and ExternProviders in the query mod.

This PR also updates the example of registering a new Provider to consider ExternProviders.

r? @tshepang

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Jun 15, 2025
@xizheyin xizheyin marked this pull request as draft June 15, 2025 12:47
@xizheyin xizheyin marked this pull request as ready for review June 15, 2025 12:52
@xizheyin
Copy link
Member Author

first commit for ExternProviders, second commit for the nit in #2465.

@BoxyUwU BoxyUwU self-assigned this Dec 11, 2025
@BoxyUwU BoxyUwU added S-waiting-on-author Status: this PR is waiting for additional action by the OP A-query-system Area: query system and removed S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content labels Dec 11, 2025
@rustbot

This comment has been minimized.

Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>

Co-authored-by: Boxy <rust@boxyuwu.dev>
@xizheyin
Copy link
Member Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content and removed S-waiting-on-author Status: this PR is waiting for additional action by the OP labels Dec 12, 2025
@BoxyUwU
Copy link
Member

BoxyUwU commented Dec 12, 2025

Thanks!

@BoxyUwU BoxyUwU merged commit 14b0f34 into rust-lang:main Dec 12, 2025
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-query-system Area: query system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants