1
Fork 0
rust/compiler/rustc_query_impl/src
bors 15491d7b6b Auto merge of #89343 - Mark-Simulacrum:no-args-queries, r=cjgillot
Refactor fingerprint reconstruction

This PR replaces can_reconstruct_query_key with fingerprint_style, which returns the style of the fingerprint for that query. This allows us to avoid trying to extract a DefId (or equivalent) from keys which *are* reconstructible because they're () but not as DefIds.

This is done with the goal of fixing -Zdump-dep-graph, which seems to have broken a while ago (I didn't try to bisect). Currently even on a `fn main() {}` file it'll ICE (you need to also pass -Zquery-dep-graph for it to work at all), and this patch indirectly fixes the cause of that ICE. This also adds a test for it continuing to work.
2021-10-09 13:13:07 +00:00
..
keys.rs Turn tcx.vtable_allocation() into a query. 2021-10-07 20:03:00 +02:00
lib.rs Remove re-export. 2021-10-03 16:08:54 +02:00
on_disk_cache.rs Do not re-hash foreign spans. 2021-10-06 19:10:07 +02:00
plumbing.rs Query the fingerprint style during key reconstruction 2021-10-06 22:19:48 -04:00
profiling_support.rs Restrict access to crate_name. 2021-06-02 18:35:32 +02:00
README.md Move the query system to rustc_query_impl. 2021-02-19 17:51:58 +01:00
stats.rs Correct comments about untracked accesses. 2021-07-06 19:26:02 +02:00
util.rs Note that type aliases cannot be recursive 2021-08-27 14:50:51 -07:00
values.rs Move the query system to rustc_query_impl. 2021-02-19 17:51:58 +01:00

For more information about how the query system works, see the rustc dev guide.