Skip to content

Commit 07bfd00

Browse files
committed
Add link to Providers and ExternProviders in Query System of rdg
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
1 parent 110076d commit 07bfd00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/query.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ during compiler initialization. The macro system generates both structs,
7878
which act as function tables for all query implementations, where each
7979
field is a function pointer to the actual provider.
8080

81+
[providers_struct]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/query/struct.Providers.html
82+
[extern_providers_struct]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/query/struct.ExternProviders.html
83+
8184
**Note:** Both the `Providers` and `ExternProviders` structs are generated by macros and act as function tables for all query implementations.
8285
They are **not** Rust traits, but plain structs with function pointer fields.
8386

@@ -268,4 +271,5 @@ More discussion and issues:
268271
["Red/Green" dependency tracking in compiler]: https://github.com/rust-lang/rust/issues/42293
269272
[GitHub issue #42633]: https://github.com/rust-lang/rust/issues/42633
270273
[Incremental Compilation Beta]: https://internals.rust-lang.org/t/incremental-compilation-beta/4721
271-
[Incremental Compilation Announcement]: https://blog.rust-lang.org/2016/09/08/incremental.html
274+
[Incremental Compilation Announcement]: https://blog.rust-lang.org/2016/09/08/incremental.html
275+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy