Skip to content

Commit

Permalink
Don't try to mark eval_always queries as green before running them
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Feb 6, 2019
1 parent 0426faa commit 59c6c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
return Ok(result);
}

if !dep_node.kind.is_input() {
if !dep_node.kind.is_input() && !dep_node.kind.is_eval_always() {
if let Some((prev_dep_node_index,
dep_node_index)) = self.dep_graph.try_mark_green_and_read(self,
&dep_node) {
Expand Down

0 comments on commit 59c6c5a

Please sign in to comment.