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> {
875875 parent_dep_node_index : SerializedDepNodeIndex ,
876876 frame : Option < & MarkFrame < ' _ > > ,
877877 ) -> Option < ( ) > {
878- let dep_dep_node_color = self . colors . get ( parent_dep_node_index) ;
879-
880878 let get_dep_dep_node = || self . previous . index_to_node ( parent_dep_node_index) ;
881879
882- match dep_dep_node_color {
880+ match self . colors . get ( parent_dep_node_index ) {
883881 Some ( DepNodeColor :: Green ( _) ) => {
884882 // This dependency has been marked as green before, we are
885883 // still fine and can continue with checking the other
@@ -929,9 +927,7 @@ impl<D: Deps> DepGraphData<D> {
929927 return None ;
930928 }
931929
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) {
935931 Some ( DepNodeColor :: Green ( _) ) => {
936932 debug ! ( "managed to FORCE dependency {dep_dep_node:?} to green" ) ;
937933 return Some ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments