Skip to content

Commit c5ca630

Browse files
xizheyinBoxyUwU
andauthored
Update src/query.md
Co-authored-by: Boxy <rust@boxyuwu.dev>
1 parent 23d77ab commit c5ca630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Each of these provider structs is generated by the macros and contains function
136136

137137
#### How are providers registered?
138138

139-
The provider structs are filled in during compiler initialization, mainly by the `rustc_driver` crate.
139+
The `util::Provider` struct is filled in during compiler initialization, by the `rustc_interface` crate from the `DEFAULT_QUERY_PROVIDERS` static.
140140
But the actual provider functions are implemented in various `rustc_*` crates (like `rustc_middle`, `rustc_hir_analysis`, etc).
141141

142142
To register providers, each crate exposes a [`provide`][provide_fn] function that looks like this:

0 commit comments

Comments
 (0)