Module hooks

Source
Expand description

“Hooks” let you write tcx methods in downstream crates and call them in this crate, reducing the amount of code that needs to be in this crate (which is already very big). 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.

Macros§

declare_hooks 🔒

Structs§

Providers

Functions§

default_hook 🔒