We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94bc9c7 + 13e5875 commit 3837a85Copy full SHA for 3837a85
compiler/rustc_middle/src/hooks/mod.rs
@@ -1,3 +1,8 @@
1
+//! "Hooks" provide a way for `tcx` functionality to be provided by some downstream crate without
2
+//! everything in rustc having to depend on that crate. This is somewhat similar to queries, but
3
+//! queries come with a lot of machinery for caching and incremental compilation, whereas hooks are
4
+//! just plain function pointers without any of the query magic.
5
+
6
use crate::mir;
7
use crate::query::TyCtxtAt;
8
use crate::ty::{Ty, TyCtxt};
0 commit comments