Skip to content

Commit 3837a85

Browse files
authored
Unrolled build for rust-lang#116297
Rollup merge of rust-lang#116297 - RalfJung:hooks, r=oli-obk add some docs to hooks/mod.rs r? `@oli-obk`
2 parents 94bc9c7 + 13e5875 commit 3837a85

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_middle/src/hooks

1 file changed

+5
-0
lines changed

compiler/rustc_middle/src/hooks/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -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+
16
use crate::mir;
27
use crate::query::TyCtxtAt;
38
use crate::ty::{Ty, TyCtxt};

0 commit comments

Comments
 (0)