Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d44eeb1

Browse files
committed
Add link to Providers and ExternProviders
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
1 parent 110076d commit d44eeb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/query.md

Lines changed: 4 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,4 @@ 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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /