diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-01-04 10:55:50 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-01-16 17:53:02 -0500 |
| commit | 6417760632789de69c0fa6d767881b2173584afa (patch) | |
| tree | 6a8ed3ee60781f1deb28092ece95d1f524404262 | |
| parent | 93ab70565575e5595e1a527298e9f16545543b33 (diff) | |
| download | rust-6417760632789de69c0fa6d767881b2173584afa.tar.gz rust-6417760632789de69c0fa6d767881b2173584afa.zip | |
Run fmt
| -rw-r--r-- | compiler/rustc_query_system/src/query/caches.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_query_system/src/query/plumbing.rs | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/compiler/rustc_query_system/src/query/caches.rs b/compiler/rustc_query_system/src/query/caches.rs index f17551c0e18..1d2bc1a99a5 100644 --- a/compiler/rustc_query_system/src/query/caches.rs +++ b/compiler/rustc_query_system/src/query/caches.rs @@ -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)>; diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs index 9bbc39d1f41..7d49456c3a2 100644 --- a/compiler/rustc_query_system/src/query/plumbing.rs +++ b/compiler/rustc_query_system/src/query/plumbing.rs @@ -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>( |
