Prevent double panic when handling incremental fingerprint mismatch

When an incremental fingerprint mismatch occurs, we debug-print
our `DepNode` and query result. Unfortunately, the debug printing
process may cause us to run additional queries, which can result
in a re-entrant fingerprint mismatch error.

To avoid a double panic, this commit adds a thread-local variable
to detect re-entrant calls.
This commit is contained in:
Aaron Hill 2021-08-12 15:11:21 -05:00
parent 4498e300e4
commit 77b02eed7b
No known key found for this signature in database
GPG key ID: B4087E510E98B164
2 changed files with 28 additions and 6 deletions

View file

@ -3,6 +3,7 @@
#![feature(hash_raw_entry)]
#![feature(iter_zip)]
#![feature(min_specialization)]
#![feature(thread_local_const_init)]
#[macro_use]
extern crate tracing;