about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-20 00:37:29 +0100
committerGitHub <noreply@github.com>2022-02-20 00:37:29 +0100
commit39a50d829027c6377f288b9e96ff7382d98e5751 (patch)
treea7ade00fb3ed597a7aecc9ebfddd14d463ebfbb0
parentf2d4ffe81cd85efd7449caf6551418da11d8b742 (diff)
parent5cf827421e0b5467fa50f897e2625d691835a109 (diff)
downloadrust-39a50d829027c6377f288b9e96ff7382d98e5751.tar.gz
rust-39a50d829027c6377f288b9e96ff7382d98e5751.zip
Rollup merge of #94097 - pierwill:doc-rustc-middle-query, r=cjgillot
Add module-level docs for `rustc_middle::query`
-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