about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorpierwill <pierwill@users.noreply.github.com>2022-02-17 13:07:33 -0600
committerpierwill <pierwill@users.noreply.github.com>2022-02-17 13:07:33 -0600
commit5cf827421e0b5467fa50f897e2625d691835a109 (patch)
treee82b684f12b6074c1cf1d3294b4cbf79399bdf1b /compiler
parent30b3f35c420694a4f24e5a4df00f06073f4f3a37 (diff)
downloadrust-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.rs6
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