Skip to content

Commit

Permalink
Handle eval_always queries in force()
Browse files Browse the repository at this point in the history
Part of #45238
  • Loading branch information
wesleywiser committed Oct 26, 2017
1 parent 9d72fc6 commit c1436c3
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/librustc/ty/maps/plumbing.rs
Expand Up @@ -433,10 +433,17 @@ macro_rules! define_maps {
profq_msg!(tcx, ProfileQueriesMsg::ProviderBegin);
let res = tcx.cycle_check(span, Query::$name(key), || {
tcx.sess.diagnostic().track_diagnostics(|| {
tcx.dep_graph.with_task(dep_node,
tcx,
key,
Self::compute_result)
if dep_node.kind.is_eval_always() {
tcx.dep_graph.with_eval_always_task(dep_node,
tcx,
key,
Self::compute_result)
} else {
tcx.dep_graph.with_task(dep_node,
tcx,
key,
Self::compute_result)
}
})
})?;
profq_msg!(tcx, ProfileQueriesMsg::ProviderEnd);
Expand Down

0 comments on commit c1436c3

Please sign in to comment.