File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -362,8 +362,8 @@ impl DepGraph {
362
362
} ;
363
363
364
364
debug_assert_eq ! (
365
- data. colors. get( prev_index) ,
366
- DepNodeState :: Unknown ,
365
+ data. colors. get( prev_index) . color ( ) ,
366
+ None ,
367
367
"DepGraph::with_task() - Duplicate DepNodeState insertion for {:?}" ,
368
368
key
369
369
) ;
@@ -807,7 +807,7 @@ impl DepGraph {
807
807
// There may be multiple threads trying to mark the same dep node green concurrently
808
808
809
809
#[ 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 ,
811
811
"DepGraph::try_mark_previous_green() - Duplicate DepNodeState \
812
812
insertion for {:?}", dep_node) ;
813
813
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ pub fn decode_dep_graph(
50
50
nodes[ i] = node;
51
51
edges[ i] = Some ( Box :: < [ DepNodeIndex ] > :: decode ( d) ?) ;
52
52
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( ) ) {
56
54
state[ i] = AtomicCell :: new ( DepNodeState :: UnknownEvalAlways ) ;
55
+ } else {
56
+ state[ i] = AtomicCell :: new ( DepNodeState :: Unknown ) ;
57
57
}
58
58
}
59
59
}
You can’t perform that action at this time.
0 commit comments