@@ -97,7 +97,7 @@ impl DepGraph {
97
97
// Pre-allocate the fingerprints array. We over-allocate a little so
98
98
// that we hopefully don't have to re-allocate during this compilation
99
99
// session.
100
- let fingerprints = IndexVec :: from_elem_n ( Fingerprint :: zero ( ) ,
100
+ let fingerprints = IndexVec :: from_elem_n ( Fingerprint :: ZERO ,
101
101
( prev_graph. node_count ( ) * 115 ) / 100 ) ;
102
102
DepGraph {
103
103
data : Some ( Rc :: new ( DepGraphData {
@@ -236,10 +236,10 @@ impl DepGraph {
236
236
let mut fingerprints = self . fingerprints . borrow_mut ( ) ;
237
237
238
238
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 ) ;
240
240
}
241
241
242
- debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: zero ( ) ,
242
+ debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: ZERO ,
243
243
"DepGraph::with_task() - Duplicate fingerprint \
244
244
insertion for {:?}", key) ;
245
245
fingerprints[ dep_node_index] = current_fingerprint;
@@ -451,7 +451,7 @@ impl DepGraph {
451
451
452
452
// Make sure we don't run out of bounds below.
453
453
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 ) ;
455
455
}
456
456
457
457
let nodes: IndexVec < _ , ( DepNode , Fingerprint ) > =
@@ -644,10 +644,10 @@ impl DepGraph {
644
644
let mut fingerprints = self . fingerprints . borrow_mut ( ) ;
645
645
646
646
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 ) ;
648
648
}
649
649
650
- debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: zero ( ) ,
650
+ debug_assert ! ( fingerprints[ dep_node_index] == Fingerprint :: ZERO ,
651
651
"DepGraph::try_mark_green() - Duplicate fingerprint \
652
652
insertion for {:?}", dep_node) ;
653
653
0 commit comments