Skip to content

Commit

Permalink
Auto merge of rust-lang#83314 - Aaron1011:print-unstable-value, r=lcnr
Browse files Browse the repository at this point in the history
Debug-print result when an unstable fingerprint is detected

Helps with issues like rust-lang#83311

I had previously tried to do this in rust-lang#80692, but it had a significant performance impact (even though the code was never actually run). Hopefully, this will be better now that rust-lang#79100 has been merged.
  • Loading branch information
bors committed Mar 20, 2021
2 parents 41b315a + 443cef5 commit 61edfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_query_system/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down

0 comments on commit 61edfd5

Please sign in to comment.