Oli Scherer
24fc6e96d6
Make def_path_hash_to_def_id
a hook
2024-03-27 08:20:06 +00:00
Oli Scherer
0f5911c626
Move CrateStore::expn_hash_to_expn_id
to a hook
2024-03-27 08:20:06 +00:00
Oli Scherer
32bd3c30d8
Start replacing CStore
trait methods with hooks.
...
This also avoids the cyclic definition issues with CrateStore being
defined after TyCtxt, but needing to be used in TyCtxt.
2024-03-27 08:20:00 +00:00
Oli Scherer
afdcae2860
Rename mir_const query to mir_built
2024-03-20 09:05:22 +00:00
Oli Scherer
36728f1cdd
Replace mir_built
query with a hook and use mir_const everywhere instead
2024-03-20 09:05:09 +00:00
Zalathar
73475d0d59
coverage: Make is_eligible_for_coverage
a hook method
...
This will allow MIR building to check whether a function is eligible for
coverage instrumentation, and avoid collecting branch coverage info if it is
not.
2024-03-13 20:43:35 +11:00
Camille GILLOT
3a55c283d0
Rename hook.
2023-11-01 16:49:18 +00:00
Oli Scherer
77174d3f29
Turn const_caller_location from a query to a hook
2023-10-31 16:15:18 +00:00
Ralf Jung
13e58755d7
add some docs to hooks/mod.rs
2023-09-30 22:33:22 +02:00
Oli Scherer
9defc971f1
Add tracing instrumentation, just like queries automatically add it
2023-09-22 09:25:38 +00:00
Oli Scherer
2157f31731
Add a way to decouple the implementation and the declaration of a TyCtxt method.
2023-09-22 09:23:15 +00:00