File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
compiler/rustc_query_system/src/dep_graph Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -875,11 +875,9 @@ impl<D: Deps> DepGraphData<D> {
875
875
parent_dep_node_index : SerializedDepNodeIndex ,
876
876
frame : Option < & MarkFrame < ' _ > > ,
877
877
) -> Option < ( ) > {
878
- let dep_dep_node_color = self . colors . get ( parent_dep_node_index) ;
879
-
880
878
let get_dep_dep_node = || self . previous . index_to_node ( parent_dep_node_index) ;
881
879
882
- match dep_dep_node_color {
880
+ match self . colors . get ( parent_dep_node_index ) {
883
881
Some ( DepNodeColor :: Green ( _) ) => {
884
882
// This dependency has been marked as green before, we are
885
883
// still fine and can continue with checking the other
@@ -929,9 +927,7 @@ impl<D: Deps> DepGraphData<D> {
929
927
return None ;
930
928
}
931
929
932
- let dep_dep_node_color = self . colors . get ( parent_dep_node_index) ;
933
-
934
- match dep_dep_node_color {
930
+ match self . colors . get ( parent_dep_node_index) {
935
931
Some ( DepNodeColor :: Green ( _) ) => {
936
932
debug ! ( "managed to FORCE dependency {dep_dep_node:?} to green" ) ;
937
933
return Some ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments