Skip to content

Commit 5cf8274

Browse files
committed
Add module-level docs for rustc_middle::query
1 parent 30b3f35 commit 5cf8274

File tree

1 file changed

+6
-0
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+6
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//! Defines the various compiler queries.
2+
//!
3+
//! For more information on the query system, see
4+
//! ["Queries: demand-driven compilation"](https://rustc-dev-guide.rust-lang.org/query.html).
5+
//! This chapter includes instructions for adding new queries.
6+
17
// Each of these queries corresponds to a function pointer field in the
28
// `Providers` struct for requesting a value of that type, and a method
39
// on `tcx: TyCtxt` (and `tcx.at(span)`) for doing that request in a way

0 commit comments

Comments
 (0)