Skip to content

Commit

Permalink
Run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Jan 16, 2021
1 parent 93ab705 commit 6417760
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_query_system/src/query/caches.rs
Expand Up @@ -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)>;
Expand Down
9 changes: 7 additions & 2 deletions compiler/rustc_query_system/src/query/plumbing.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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>(
Expand Down

0 comments on commit 6417760

Please sign in to comment.