Skip to content

Commit 0997ff5

Browse files
xizheyinBoxyUwU
andauthored
Update src/query.md
Co-authored-by: Boxy <[email protected]>
1 parent 1a77078 commit 0997ff5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/query.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ pub fn provide(providers: &mut rustc_middle::util::Providers) {
170170
Note that `util::Providers` implements `DerefMut` to `query::Providers` so callers of the `provide` functions can pass in a `util::Providers` and it will just work for provider functions that accept `query::Providers` too
171171

172172
- This function takes a mutable reference to the `Providers` struct and sets the fields to point to the correct provider functions.
173+
- You can also assign queries individually, e.g. `providers.type_of = type_of;`.
173174
- You can assign fields individually for each provider type (local, external, and hooks).
174175

175176
#### Adding a new provider

0 commit comments

Comments
 (0)