Skip to content

Commit

Permalink
Unrolled build for rust-lang#116297
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#116297 - RalfJung:hooks, r=oli-obk

add some docs to hooks/mod.rs

r? `@oli-obk`
  • Loading branch information
rust-timer authored Oct 6, 2023
2 parents 94bc9c7 + 13e5875 commit 3837a85
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 3837a85

Please sign in to comment.