This commit is contained in:
Aaron Hill 2021-01-04 10:55:50 -05:00
parent 93ab705655
commit 6417760632
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
2 changed files with 8 additions and 3 deletions

View File

@ -171,7 +171,7 @@ impl<'tcx, K: Eq + Hash, V: Debug + 'tcx> QueryStorage for ArenaCache<'tcx, K, V
impl<'tcx, K, V: 'tcx> QueryCache for ArenaCache<'tcx, K, V>
where
K: Eq + Hash + Clone + Debug,
V: Debug
V: Debug,
{
type Key = K;
type Sharded = FxHashMap<K, &'tcx (V, DepNodeIndex)>;

View File

@ -20,8 +20,8 @@ use rustc_errors::{Diagnostic, FatalError};
use rustc_span::source_map::DUMMY_SP;
use rustc_span::Span;
use std::collections::hash_map::Entry;
use std::hash::{Hash, Hasher};
use std::fmt::Debug;
use std::hash::{Hash, Hasher};
use std::mem;
use std::num::NonZeroU32;
use std::ptr;
@ -564,7 +564,12 @@ 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 {:?}: result {:?}", dep_node, result);
assert!(
new_hash == old_hash,
"found unstable fingerprints for {:?}: result {:?}",
dep_node,
result
);
}
fn force_query_with_job<C, CTX>(