We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9737ddf commit 1e0f0d2Copy full SHA for 1e0f0d2
src/query.md
@@ -169,9 +169,10 @@ Suppose you want to add a new query called `fubar`. You would:
169
```
170
2. Register it in the `provide` function:
171
```rust,ignore
172
- pub fn provide(providers: &mut rustc_middle::util::Providers) {
173
- providers.queries.fubar = fubar;
174
- }
+ pub fn provide(providers: &mut Providers) {
+ *providers = Providers {
+ fubar,
175
+ ..*providers
176
177
178
### How queries interact with external crate metadata
0 commit comments