@@ -97,7 +97,7 @@ impl DepGraph {
9797 // Pre-allocate the fingerprints array. We over-allocate a little so
9898 // that we hopefully don't have to re-allocate during this compilation
9999 // session.
100- let fingerprints = IndexVec :: from_elem_n ( Fingerprint :: zero ( ) ,
100+ let fingerprints = IndexVec :: from_elem_n ( Fingerprint :: ZERO ,
101101 ( prev_graph. node_count ( ) * 115 ) / 100 ) ;
102102 DepGraph {
103103 data : Some ( Rc :: new ( DepGraphData {
@@ -236,10 +236,10 @@ impl DepGraph {
236236 let mut fingerprints = self . fingerprints . borrow_mut ( ) ;
237237
238238 if dep_node_index. index ( ) >= fingerprints. len ( ) {
239- fingerprints. resize ( dep_node_index. index ( ) + 1 , Fingerprint :: zero ( ) ) ;
239+ fingerprints. resize ( dep_node_index. index ( ) + 1 , Fingerprint :: ZERO ) ;
240240 }
241241
242- debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: zero ( ) ,
242+ debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: ZERO ,
243243 "DepGraph::with_task() - Duplicate fingerprint \
244244 insertion for {:?}", key) ;
245245 fingerprints[ dep_node_index] = current_fingerprint;
@@ -451,7 +451,7 @@ impl DepGraph {
451451
452452 // Make sure we don't run out of bounds below.
453453 if current_dep_graph. nodes . len ( ) > fingerprints. len ( ) {
454- fingerprints. resize ( current_dep_graph. nodes . len ( ) , Fingerprint :: zero ( ) ) ;
454+ fingerprints. resize ( current_dep_graph. nodes . len ( ) , Fingerprint :: ZERO ) ;
455455 }
456456
457457 let nodes: IndexVec < _ , ( DepNode , Fingerprint ) > =
@@ -644,10 +644,10 @@ impl DepGraph {
644644 let mut fingerprints = self . fingerprints . borrow_mut ( ) ;
645645
646646 if dep_node_index. index ( ) >= fingerprints. len ( ) {
647- fingerprints. resize ( dep_node_index. index ( ) + 1 , Fingerprint :: zero ( ) ) ;
647+ fingerprints. resize ( dep_node_index. index ( ) + 1 , Fingerprint :: ZERO ) ;
648648 }
649649
650- debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: zero ( ) ,
650+ debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: ZERO ,
651651 "DepGraph::try_mark_green() - Duplicate fingerprint \
652652 insertion for {:?}", dep_node) ;
653653
0 commit comments