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
|
@ -1,12 +1,12 @@
|
|||
use std::fmt;
|
||||
use std::hash::{BuildHasherDefault, Hash, Hasher};
|
||||
|
||||
use rustc_data_structures::AtomicRef;
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_data_structures::stable_hasher::{
|
||||
Hash64, HashStable, StableHasher, StableOrd, ToStableHashKey,
|
||||
};
|
||||
use rustc_data_structures::unhash::Unhasher;
|
||||
use rustc_data_structures::AtomicRef;
|
||||
use rustc_index::Idx;
|
||||
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
|
||||
use rustc_serialize::{Decodable, Encodable};
|
||||
|
|
|
@ -39,10 +39,10 @@ use rustc_macros::{Decodable, Encodable, HashStable_Generic};
|
|||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||
use tracing::{debug, trace};
|
||||
|
||||
use crate::def_id::{CrateNum, DefId, StableCrateId, CRATE_DEF_ID, LOCAL_CRATE};
|
||||
use crate::def_id::{CRATE_DEF_ID, CrateNum, DefId, LOCAL_CRATE, StableCrateId};
|
||||
use crate::edition::Edition;
|
||||
use crate::symbol::{kw, sym, Symbol};
|
||||
use crate::{with_session_globals, HashStableContext, Span, SpanDecoder, SpanEncoder, DUMMY_SP};
|
||||
use crate::symbol::{Symbol, kw, sym};
|
||||
use crate::{DUMMY_SP, HashStableContext, Span, SpanDecoder, SpanEncoder, with_session_globals};
|
||||
|
||||
/// A `SyntaxContext` represents a chain of pairs `(ExpnId, Transparency)` named "marks".
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash)]
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
extern crate self as rustc_span;
|
||||
|
||||
use derive_where::derive_where;
|
||||
use rustc_data_structures::{outline, AtomicRef};
|
||||
use rustc_data_structures::{AtomicRef, outline};
|
||||
use rustc_macros::{Decodable, Encodable, HashStable_Generic};
|
||||
use rustc_serialize::opaque::{FileEncoder, MemDecoder};
|
||||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||
|
@ -60,13 +60,13 @@ pub use hygiene::{
|
|||
};
|
||||
use rustc_data_structures::stable_hasher::HashingControls;
|
||||
pub mod def_id;
|
||||
use def_id::{CrateNum, DefId, DefIndex, DefPathHash, LocalDefId, StableCrateId, LOCAL_CRATE};
|
||||
use def_id::{CrateNum, DefId, DefIndex, DefPathHash, LOCAL_CRATE, LocalDefId, StableCrateId};
|
||||
pub mod edit_distance;
|
||||
mod span_encoding;
|
||||
pub use span_encoding::{Span, DUMMY_SP};
|
||||
pub use span_encoding::{DUMMY_SP, Span};
|
||||
|
||||
pub mod symbol;
|
||||
pub use symbol::{sym, Symbol};
|
||||
pub use symbol::{Symbol, sym};
|
||||
|
||||
mod analyze_source_file;
|
||||
pub mod fatal_error;
|
||||
|
@ -83,7 +83,7 @@ use std::{fmt, iter};
|
|||
|
||||
use md5::{Digest, Md5};
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::stable_hasher::{Hash128, Hash64, HashStable, StableHasher};
|
||||
use rustc_data_structures::stable_hasher::{Hash64, Hash128, HashStable, StableHasher};
|
||||
use rustc_data_structures::sync::{FreezeLock, FreezeWriteGuard, Lock, Lrc};
|
||||
use sha1::Sha1;
|
||||
use sha2::Sha256;
|
||||
|
|
|
@ -5,7 +5,7 @@ use rustc_serialize::int_overflow::DebugStrictAdd;
|
|||
|
||||
use crate::def_id::{DefIndex, LocalDefId};
|
||||
use crate::hygiene::SyntaxContext;
|
||||
use crate::{BytePos, SpanData, SPAN_TRACK};
|
||||
use crate::{BytePos, SPAN_TRACK, SpanData};
|
||||
|
||||
/// A compressed span.
|
||||
///
|
||||
|
|
|
@ -11,9 +11,9 @@ use rustc_data_structures::stable_hasher::{
|
|||
HashStable, StableCompare, StableHasher, ToStableHashKey,
|
||||
};
|
||||
use rustc_data_structures::sync::Lock;
|
||||
use rustc_macros::{symbols, Decodable, Encodable, HashStable_Generic};
|
||||
use rustc_macros::{Decodable, Encodable, HashStable_Generic, symbols};
|
||||
|
||||
use crate::{with_session_globals, Edition, Span, DUMMY_SP};
|
||||
use crate::{DUMMY_SP, Edition, Span, with_session_globals};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
@ -2523,10 +2523,10 @@ pub mod kw {
|
|||
/// For example `sym::rustfmt` or `sym::u8`.
|
||||
pub mod sym {
|
||||
// Used from a macro in `librustc_feature/accepted.rs`
|
||||
use super::Symbol;
|
||||
pub use super::kw::MacroRules as macro_rules;
|
||||
#[doc(inline)]
|
||||
pub use super::sym_generated::*;
|
||||
use super::Symbol;
|
||||
|
||||
/// Get the symbol for an integer.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue