@@ -149,7 +149,6 @@ impl<D: Deps> DepGraph<D> {
149
149
DepNode { kind : D :: DEP_KIND_RED , hash : Fingerprint :: ZERO . into ( ) } ,
150
150
EdgesVec :: new ( ) ,
151
151
None ,
152
- false ,
153
152
) ;
154
153
assert_eq ! ( red_node_index, DepNodeIndex :: FOREVER_RED_NODE ) ;
155
154
match red_node_prev_index_and_color {
@@ -373,16 +372,13 @@ impl<D: Deps> DepGraphData<D> {
373
372
let current_fingerprint =
374
373
hash_result. map ( |f| dcx. with_stable_hashing_context ( |mut hcx| f ( & mut hcx, & result) ) ) ;
375
374
376
- let print_status = cfg ! ( debug_assertions) && dcx. sess ( ) . opts . unstable_opts . dep_tasks ;
377
-
378
375
// Intern the new `DepNode`.
379
376
let ( dep_node_index, prev_and_color) = self . current . intern_node (
380
377
dcx. profiler ( ) ,
381
378
& self . previous ,
382
379
key,
383
380
edges,
384
381
current_fingerprint,
385
- print_status,
386
382
) ;
387
383
388
384
hashing_timer. finish_with_query_invocation_id ( dep_node_index. into ( ) ) ;
@@ -589,16 +585,13 @@ impl<D: Deps> DepGraph<D> {
589
585
cx. with_stable_hashing_context ( |mut hcx| hash_result ( & mut hcx, result) )
590
586
} ) ;
591
587
592
- let print_status = cfg ! ( debug_assertions) && cx. sess ( ) . opts . unstable_opts . dep_tasks ;
593
-
594
588
// Intern the new `DepNode` with the dependencies up-to-now.
595
589
let ( dep_node_index, prev_and_color) = data. current . intern_node (
596
590
cx. profiler ( ) ,
597
591
& data. previous ,
598
592
node,
599
593
edges,
600
594
current_fingerprint,
601
- print_status,
602
595
) ;
603
596
604
597
hashing_timer. finish_with_query_invocation_id ( dep_node_index. into ( ) ) ;
@@ -1219,20 +1212,13 @@ impl<D: Deps> CurrentDepGraph<D> {
1219
1212
key : DepNode ,
1220
1213
edges : EdgesVec ,
1221
1214
fingerprint : Option < Fingerprint > ,
1222
- print_status : bool ,
1223
1215
) -> ( DepNodeIndex , Option < ( SerializedDepNodeIndex , DepNodeColor ) > ) {
1224
- let print_status = cfg ! ( debug_assertions) && print_status;
1225
-
1226
1216
// Get timer for profiling `DepNode` interning
1227
1217
let _node_intern_timer =
1228
1218
self . node_intern_event_id . map ( |eid| profiler. generic_activity_with_event_id ( eid) ) ;
1229
1219
1230
1220
if let Some ( prev_index) = prev_graph. node_to_index_opt ( & key) {
1231
- let get_dep_node_index = |color, fingerprint| {
1232
- if print_status {
1233
- eprintln ! ( "[task::{color:}] {key:?}" ) ;
1234
- }
1235
-
1221
+ let get_dep_node_index = |fingerprint| {
1236
1222
let mut prev_index_to_index = self . prev_index_to_index . lock ( ) ;
1237
1223
1238
1224
let dep_node_index = match prev_index_to_index[ prev_index] {
@@ -1256,27 +1242,23 @@ impl<D: Deps> CurrentDepGraph<D> {
1256
1242
if fingerprint == prev_graph. fingerprint_by_index ( prev_index) {
1257
1243
// This is a green node: it existed in the previous compilation,
1258
1244
// its query was re-executed, and it has the same result as before.
1259
- let dep_node_index = get_dep_node_index ( "green" , fingerprint) ;
1245
+ let dep_node_index = get_dep_node_index ( fingerprint) ;
1260
1246
( dep_node_index, Some ( ( prev_index, DepNodeColor :: Green ( dep_node_index) ) ) )
1261
1247
} else {
1262
1248
// This is a red node: it existed in the previous compilation, its query
1263
1249
// was re-executed, but it has a different result from before.
1264
- let dep_node_index = get_dep_node_index ( "red" , fingerprint) ;
1250
+ let dep_node_index = get_dep_node_index ( fingerprint) ;
1265
1251
( dep_node_index, Some ( ( prev_index, DepNodeColor :: Red ) ) )
1266
1252
}
1267
1253
} else {
1268
1254
// This is a red node, effectively: it existed in the previous compilation
1269
1255
// session, its query was re-executed, but it doesn't compute a result hash
1270
1256
// (i.e. it represents a `no_hash` query), so we have no way of determining
1271
1257
// whether or not the result was the same as before.
1272
- let dep_node_index = get_dep_node_index ( "unknown" , Fingerprint :: ZERO ) ;
1258
+ let dep_node_index = get_dep_node_index ( Fingerprint :: ZERO ) ;
1273
1259
( dep_node_index, Some ( ( prev_index, DepNodeColor :: Red ) ) )
1274
1260
}
1275
1261
} else {
1276
- if print_status {
1277
- eprintln ! ( "[task::new] {key:?}" ) ;
1278
- }
1279
-
1280
1262
let fingerprint = fingerprint. unwrap_or ( Fingerprint :: ZERO ) ;
1281
1263
1282
1264
// This is a new node: it didn't exist in the previous compilation session.
0 commit comments