Reformat using the new identifier sorting from rustfmt
This commit is contained in:
parent
1173204b36
commit
c682aa162b
1455 changed files with 7152 additions and 8384 deletions
|
@ -45,9 +45,9 @@
|
|||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
|
||||
use rustc_data_structures::AtomicRef;
|
||||
use rustc_data_structures::fingerprint::{Fingerprint, PackedFingerprint};
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, StableOrd, ToStableHashKey};
|
||||
use rustc_data_structures::AtomicRef;
|
||||
use rustc_hir::definitions::DefPathHash;
|
||||
use rustc_macros::{Decodable, Encodable};
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ use std::collections::hash_map::Entry;
|
|||
use std::fmt::Debug;
|
||||
use std::hash::Hash;
|
||||
use std::marker::PhantomData;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
|
|
|
@ -9,14 +9,14 @@ use std::panic;
|
|||
|
||||
pub use dep_node::{DepKind, DepKindStruct, DepNode, DepNodeParams, WorkProductId};
|
||||
pub(crate) use graph::DepGraphData;
|
||||
pub use graph::{hash_result, DepGraph, DepNodeIndex, TaskDepsRef, WorkProduct, WorkProductMap};
|
||||
pub use graph::{DepGraph, DepNodeIndex, TaskDepsRef, WorkProduct, WorkProductMap, hash_result};
|
||||
pub use query::DepGraphQuery;
|
||||
use rustc_data_structures::profiling::SelfProfilerRef;
|
||||
use rustc_session::Session;
|
||||
pub use serialized::{SerializedDepGraph, SerializedDepNodeIndex};
|
||||
use tracing::instrument;
|
||||
|
||||
use self::graph::{print_markframe_trace, MarkFrame};
|
||||
use self::graph::{MarkFrame, print_markframe_trace};
|
||||
use crate::ich::StableHashingContext;
|
||||
|
||||
pub trait DepContext: Copy {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::graph::implementation::{Direction, Graph, NodeIndex, INCOMING};
|
||||
use rustc_data_structures::graph::implementation::{Direction, Graph, INCOMING, NodeIndex};
|
||||
use rustc_index::IndexVec;
|
||||
|
||||
use super::{DepNode, DepNodeIndex};
|
||||
|
|
|
@ -3,11 +3,11 @@ use rustc_data_structures::stable_hasher::{HashStable, HashingControls, StableHa
|
|||
use rustc_data_structures::sync::Lrc;
|
||||
use rustc_hir::def_id::{DefId, LocalDefId};
|
||||
use rustc_hir::definitions::DefPathHash;
|
||||
use rustc_session::cstore::Untracked;
|
||||
use rustc_session::Session;
|
||||
use rustc_session::cstore::Untracked;
|
||||
use rustc_span::source_map::SourceMap;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{BytePos, CachingSourceMapView, SourceFile, Span, SpanData, DUMMY_SP};
|
||||
use rustc_span::{BytePos, CachingSourceMapView, DUMMY_SP, SourceFile, Span, SpanData};
|
||||
|
||||
use crate::ich;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! ICH - Incremental Compilation Hash
|
||||
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::symbol::{Symbol, sym};
|
||||
|
||||
pub use self::hcx::StableHashingContext;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ mod job;
|
|||
#[cfg(parallel_compiler)]
|
||||
pub use self::job::break_query_cycles;
|
||||
pub use self::job::{
|
||||
print_query_stack, report_cycle, QueryInfo, QueryJob, QueryJobId, QueryJobInfo, QueryMap,
|
||||
QueryInfo, QueryJob, QueryJobId, QueryJobInfo, QueryMap, print_query_stack, report_cycle,
|
||||
};
|
||||
|
||||
mod caches;
|
||||
|
@ -17,8 +17,8 @@ use rustc_data_structures::sync::Lock;
|
|||
use rustc_errors::DiagInner;
|
||||
use rustc_hir::def::DefKind;
|
||||
use rustc_macros::{Decodable, Encodable};
|
||||
use rustc_span::def_id::DefId;
|
||||
use rustc_span::Span;
|
||||
use rustc_span::def_id::DefId;
|
||||
use thin_vec::ThinVec;
|
||||
|
||||
pub use self::config::{HashResult, QueryConfig};
|
||||
|
|
|
@ -16,21 +16,21 @@ use rustc_data_structures::sync::Lock;
|
|||
#[cfg(parallel_compiler)]
|
||||
use rustc_data_structures::{outline, sync};
|
||||
use rustc_errors::{Diag, FatalError, StashKey};
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use rustc_span::{DUMMY_SP, Span};
|
||||
use thin_vec::ThinVec;
|
||||
use tracing::instrument;
|
||||
|
||||
use super::QueryConfig;
|
||||
use crate::HandleCycleError;
|
||||
use crate::dep_graph::{DepContext, DepGraphData, DepNode, DepNodeIndex, DepNodeParams};
|
||||
use crate::ich::StableHashingContext;
|
||||
use crate::query::caches::QueryCache;
|
||||
#[cfg(parallel_compiler)]
|
||||
use crate::query::job::QueryLatch;
|
||||
use crate::query::job::{report_cycle, QueryInfo, QueryJob, QueryJobId, QueryJobInfo};
|
||||
use crate::query::job::{QueryInfo, QueryJob, QueryJobId, QueryJobInfo, report_cycle};
|
||||
use crate::query::{
|
||||
QueryContext, QueryMap, QuerySideEffects, QueryStackFrame, SerializedDepNodeIndex,
|
||||
};
|
||||
use crate::HandleCycleError;
|
||||
|
||||
pub struct QueryState<K> {
|
||||
active: Sharded<FxHashMap<K, QueryResult>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue