diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-10-06 21:17:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-06 21:17:48 +0200 |
| commit | fdb136a83f32555c76911e9c77f62ad21cbfadd3 (patch) | |
| tree | 8248cca04381adcf3e8b2f5b3caf03712e8e7951 /compiler | |
| parent | 4dfa5e5dec58f7c510b6e3722fa74b244d4ba887 (diff) | |
| parent | 13e58755d7c692c48e78faa68989e66473708119 (diff) | |
| download | rust-fdb136a83f32555c76911e9c77f62ad21cbfadd3.tar.gz rust-fdb136a83f32555c76911e9c77f62ad21cbfadd3.zip | |
Rollup merge of #116297 - RalfJung:hooks, r=oli-obk
add some docs to hooks/mod.rs r? `@oli-obk`
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/hooks/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/hooks/mod.rs b/compiler/rustc_middle/src/hooks/mod.rs index 12aeae17725..572751d9511 100644 --- a/compiler/rustc_middle/src/hooks/mod.rs +++ b/compiler/rustc_middle/src/hooks/mod.rs @@ -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}; |
