Skip to content

Commit

Permalink
add some docs to hooks/mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 30, 2023
1 parent bb6c66b commit 13e5875
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/rustc_middle/src/hooks/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//! "Hooks" provide a way for `tcx` functionality to be provided by some downstream crate without
//! everything in rustc having to depend on that crate. This is somewhat similar to queries, but
//! queries come with a lot of machinery for caching and incremental compilation, whereas hooks are
//! just plain function pointers without any of the query magic.
use crate::mir;
use crate::query::TyCtxtAt;
use crate::ty::{Ty, TyCtxt};
Expand Down

0 comments on commit 13e5875

Please sign in to comment.