Skip to content

Commit 940ba86

Browse files
committed
XXX: query_dispatcher
1 parent 91af66a commit 940ba86

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

compiler/rustc_query_impl/src/dep_kind_vtables.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ where
140140
is_eval_always,
141141
key_fingerprint_style,
142142
force_from_dep_node: Some(|tcx, dep_node, _| {
143+
// njn: hmm
143144
force_from_dep_node_inner(Q::query_dispatcher(tcx), tcx, dep_node)
144145
}),
145146
try_load_from_on_disk_cache: Some(|tcx, dep_node| {

compiler/rustc_query_impl/src/plumbing.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ macro_rules! define_queries {
503503
#[cfg(debug_assertions)]
504504
let _guard = tracing::span!(tracing::Level::TRACE, stringify!($name), ?key).entered();
505505
execution::get_query_incr(
506-
QueryType::query_dispatcher(tcx),
506+
&tcx.query_system.query_vtables.$name,
507507
tcx,
508508
span,
509509
key,
@@ -523,7 +523,7 @@ macro_rules! define_queries {
523523
__mode: QueryMode,
524524
) -> Option<Erased<queries::$name::Value<'tcx>>> {
525525
Some(execution::get_query_non_incr(
526-
QueryType::query_dispatcher(tcx),
526+
&tcx.query_system.query_vtables.$name,
527527
tcx,
528528
span,
529529
key,
@@ -703,7 +703,7 @@ macro_rules! define_queries {
703703
query_impl::$name::QueryType<'tcx>,
704704
_
705705
> (
706-
query_impl::$name::QueryType::query_dispatcher(tcx),
706+
&tcx.query_system.query_vtables.$name,
707707
tcx,
708708
encoder,
709709
query_result_index,
@@ -713,7 +713,7 @@ macro_rules! define_queries {
713713

714714
pub(crate) fn query_key_hash_verify<'tcx>(tcx: TyCtxt<'tcx>) {
715715
$crate::plumbing::query_key_hash_verify(
716-
query_impl::$name::QueryType::query_dispatcher(tcx),
716+
&tcx.query_system.query_vtables.$name,
717717
tcx,
718718
)
719719
}

0 commit comments

Comments
 (0)