diff options
| author | pierwill <pierwill@users.noreply.github.com> | 2022-02-17 13:07:33 -0600 |
|---|---|---|
| committer | pierwill <pierwill@users.noreply.github.com> | 2022-02-17 13:07:33 -0600 |
| commit | 5cf827421e0b5467fa50f897e2625d691835a109 (patch) | |
| tree | e82b684f12b6074c1cf1d3294b4cbf79399bdf1b /compiler | |
| parent | 30b3f35c420694a4f24e5a4df00f06073f4f3a37 (diff) | |
| download | rust-5cf827421e0b5467fa50f897e2625d691835a109.tar.gz rust-5cf827421e0b5467fa50f897e2625d691835a109.zip | |
Add module-level docs for `rustc_middle::query`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 43cfe6f3b8a..be86f1e9274 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1,3 +1,9 @@ +//! Defines the various compiler queries. +//! +//! For more information on the query system, see +//! ["Queries: demand-driven compilation"](https://rustc-dev-guide.rust-lang.org/query.html). +//! This chapter includes instructions for adding new queries. + // Each of these queries corresponds to a function pointer field in the // `Providers` struct for requesting a value of that type, and a method // on `tcx: TyCtxt` (and `tcx.at(span)`) for doing that request in a way |
