Skip to content

Commit ecc2d67

Browse files
Merge pull request #2790 from reddevilmidzy/query
Update query documentation to reflect QueryKey changes
2 parents 23e8254 + 2c7847e commit ecc2d67

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/query.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ dependencies of the local crate)
9090
Note that what determines the crate that a query is targeting is not the *kind* of query, but the *key*.
9191
For example, when you invoke `tcx.type_of(def_id)`, that could be a
9292
local query or an external query, depending on what crate the `def_id`
93-
is referring to (see the [`self::keys::Key`][Key] trait for more information on how that works).
93+
is referring to (see the [`self::keys::QueryKey`][QueryKey] trait for more information on how that works).
9494

9595
Providers always have the same signature:
9696

@@ -308,7 +308,7 @@ Let's go over these elements one by one:
308308
Also used as the name of a struct (`ty::queries::type_of`) that will be generated to represent
309309
this query.
310310
- **Query key type:** the type of the argument to this query.
311-
This type must implement the [`ty::query::keys::Key`][Key] trait, which
311+
This type must implement the [`ty::query::keys::QueryKey`][QueryKey] trait, which
312312
defines (for example) how to map it to a crate, and so forth.
313313
- **Result type of query:** the type produced by this query.
314314
This type should (a) not use `RefCell` or other interior mutability and (b) be
@@ -317,7 +317,7 @@ Let's go over these elements one by one:
317317
- **Query modifiers:** various flags and options that customize how the
318318
query is processed (mostly with respect to [incremental compilation][incrcomp]).
319319

320-
[Key]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/query/keys/trait.Key.html
320+
[QueryKey]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/query/keys/trait.QueryKey.html
321321
[incrcomp]: queries/incremental-compilation-in-detail.html#query-modifiers
322322

323323
So, to add a query:

0 commit comments

Comments
 (0)