Skip to content

Commit 4c02449

Browse files
committed
Auto merge of #153805 - Zalathar:rollup-rfXICNX, r=Zalathar
Rollup of 5 pull requests Successful merges: - rust-lang/rust#152258 (fixed VecDeque::splice() not filling the buffer correctly when resizing the buffer on start = end range) - rust-lang/rust#153691 (Miscellaneous tweaks) - rust-lang/rust#153766 (`try_execute_query` tweaks) - rust-lang/rust#153188 (implementation of `-Z min-recursion-limit`) - rust-lang/rust#153428 (Avoid duplicated query modifier comments.)
2 parents b85a1f5 + 240e2cb commit 4c02449

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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)