about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-20 16:20:21 +0000
committerbors <bors@rust-lang.org>2021-03-20 16:20:21 +0000
commit61edfd591cedff66fca639c02f66984f6271e5a6 (patch)
treeb470c6e4b6c3bd4d13e7d400bb55a7ec898a6154
parent41b315a470d583f6446599984ff9ad3bd61012b2 (diff)
parent443cef56184847ea04e3f8fa75bab546bed796e0 (diff)
Auto merge of #83314 - Aaron1011:print-unstable-value, r=lcnr
Debug-print result when an unstable fingerprint is detected

Helps with issues like #83311

I had previously tried to do this in https://github.com/rust-lang/rust/pull/80692, but it had a significant performance impact (even though the code was never actually run). Hopefully, this will be better now that https://github.com/rust-lang/rust/pull/79100 has been merged.
-rw-r--r--compiler/rustc_query_system/src/query/plumbing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs
index 6e16f803f8c..77267489a75 100644
--- a/compiler/rustc_query_system/src/query/plumbing.rs
+++ b/compiler/rustc_query_system/src/query/plumbing.rs
@@ -590,7 +590,7 @@ fn incremental_verify_ich<CTX, K, V: Debug>(
 
     let old_hash = tcx.dep_graph().fingerprint_of(dep_node_index);
 
-    assert!(new_hash == old_hash, "found unstable fingerprints for {:?}", dep_node,);
+    assert!(new_hash == old_hash, "found unstable fingerprints for {:?}: {:?}", dep_node, result);
 }
 
 fn force_query_with_job<C, CTX>(