Merge pull request #2468 from rust-lang/query-cleaning

Query cleaning
This commit is contained in:
Tshepang Mbambo 2025-06-14 23:52:29 +02:00 committed by GitHub
commit 59756939d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -37,12 +37,15 @@ will in turn demand information about that crate, starting from the
actual parsing. actual parsing.
Although this vision is not fully realized, large sections of the Although this vision is not fully realized, large sections of the
compiler (for example, generating [MIR](./mir/index.md)) currently work exactly like this. compiler (for example, generating [MIR]) currently work exactly like this.
[^incr-comp-detail]: The ["Incremental Compilation in Detail](queries/incremental-compilation-in-detail.md) chapter gives a more [^incr-comp-detail]: The [Incremental compilation in detail] chapter gives a more
in-depth description of what queries are and how they work. in-depth description of what queries are and how they work.
If you intend to write a query of your own, this is a good read. If you intend to write a query of your own, this is a good read.
[Incremental compilation in detail]: queries/incremental-compilation-in-detail.md
[MIR]: mir/index.md
## Invoking queries ## Invoking queries
Invoking a query is simple. The [`TyCtxt`] ("type context") struct offers a method Invoking a query is simple. The [`TyCtxt`] ("type context") struct offers a method