Skip to content

Commit c4eb2a1

Browse files
committed
Remove out-of-date docs.
The `DerefMut` impl for `Providers` was removed in #151096.
1 parent efa44ea commit c4eb2a1

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/query.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ pub fn provide(providers: &mut rustc_middle::util::Providers) {
168168
}
169169
```
170170

171-
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
172-
173-
- This function takes a mutable reference to the `query::Providers` struct and sets the fields to point to the correct provider functions.
174-
- You can also assign queries individually, e.g. `providers.type_of = type_of;`.
175-
- You can assign fields individually for each provider type (local, external, and hooks).
176-
177171
#### Adding a new provider
178172

179173
Suppose you want to add a new query called `fubar`.

0 commit comments

Comments
 (0)