Skip to content

Commit 9a6ef66

Browse files
committed
wip
1 parent ce85ac2 commit 9a6ef66

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc/dep_graph/graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ impl DepGraph {
362362
};
363363

364364
debug_assert_eq!(
365-
data.colors.get(prev_index),
366-
DepNodeState::Unknown,
365+
data.colors.get(prev_index).color(),
366+
None,
367367
"DepGraph::with_task() - Duplicate DepNodeState insertion for {:?}",
368368
key
369369
);
@@ -807,7 +807,7 @@ impl DepGraph {
807807
// There may be multiple threads trying to mark the same dep node green concurrently
808808

809809
#[cfg(not(parallel_compiler))]
810-
debug_assert_eq!(data.colors.get(dep_node_index), DepNodeState::Unknown,
810+
debug_assert_eq!(data.colors.get(dep_node_index).color(), None,
811811
"DepGraph::try_mark_previous_green() - Duplicate DepNodeState \
812812
insertion for {:?}", dep_node);
813813

src/librustc/dep_graph/serialized.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ pub fn decode_dep_graph(
5050
nodes[i] = node;
5151
edges[i] = Some(Box::<[DepNodeIndex]>::decode(d)?);
5252

53-
if likely!(node.kind.is_eval_always()) {
54-
state[i] = AtomicCell::new(DepNodeState::Unknown);
55-
} else {
53+
if unlikely!(node.kind.is_eval_always()) {
5654
state[i] = AtomicCell::new(DepNodeState::UnknownEvalAlways);
55+
} else {
56+
state[i] = AtomicCell::new(DepNodeState::Unknown);
5757
}
5858
}
5959
}

0 commit comments

Comments
 (0)