Normalize syntax::source_map imports.

This commit is contained in:
Mazdak Farrokhzad 2020-01-01 19:25:28 +01:00
parent 766fba3fdc
commit 75e4783f63
83 changed files with 122 additions and 131 deletions

View file

@ -11,10 +11,10 @@ use crate::session::Session;
use crate::util::nodemap::FxHashMap;
use rustc_data_structures::svh::Svh;
use rustc_index::vec::IndexVec;
use rustc_span::source_map::SourceMap;
use rustc_span::Span;
use std::iter::repeat;
use syntax::ast::NodeId;
use syntax::source_map::SourceMap;
use crate::ich::StableHashingContext;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};

View file

@ -17,10 +17,10 @@ use crate::util::nodemap::FxHashMap;
use rustc_data_structures::svh::Svh;
use rustc_index::vec::IndexVec;
use rustc_span::hygiene::MacroKind;
use rustc_span::source_map::Spanned;
use rustc_span::{Span, DUMMY_SP};
use rustc_target::spec::abi::Abi;
use syntax::ast::{self, Name, NodeId};
use syntax::source_map::Spanned;
pub mod blocks;
mod collector;

View file

@ -1,3 +1,4 @@
use rustc_span::source_map::{SourceMap, Spanned};
use rustc_span::{self, BytePos, FileName};
use rustc_target::spec::abi::Abi;
use syntax::ast;
@ -5,7 +6,6 @@ use syntax::print::pp::Breaks::{Consistent, Inconsistent};
use syntax::print::pp::{self, Breaks};
use syntax::print::pprust::{self, Comments, PrintState};
use syntax::sess::ParseSess;
use syntax::source_map::{SourceMap, Spanned};
use syntax::symbol::kw;
use syntax::util::parser::{self, AssocOp, Fixity};

View file

@ -9,9 +9,9 @@ use crate::ty::{fast_reject, TyCtxt};
use std::cmp::Ord;
use rustc_span::source_map::SourceMap;
use rustc_span::{BytePos, SourceFile};
use syntax::ast;
use syntax::source_map::SourceMap;
use syntax::symbol::Symbol;
use rustc_data_structures::fx::{FxHashMap, FxHashSet};

View file

@ -30,9 +30,9 @@ use crate::ty::{self, BoundVar, List, Region, TyCtxt};
use rustc_index::vec::IndexVec;
use rustc_macros::HashStable;
use rustc_serialize::UseSpecializedDecodable;
use rustc_span::source_map::Span;
use smallvec::SmallVec;
use std::ops::Index;
use syntax::source_map::Span;
mod canonicalizer;

View file

@ -6,9 +6,9 @@ use crate::infer::InferCtxt;
use crate::ty::print::Print;
use crate::ty::{self, DefIdTree, Infer, Ty, TyVar};
use errors::{Applicability, DiagnosticBuilder};
use rustc_span::source_map::DesugaringKind;
use rustc_span::Span;
use std::borrow::Cow;
use syntax::source_map::DesugaringKind;
use syntax::symbol::kw;
use rustc_error_codes::*;

View file

@ -4,7 +4,7 @@ use crate::infer::InferCtxt;
use crate::ty::{self, TyCtxt};
use crate::util::common::ErrorReported;
use errors::DiagnosticBuilder;
use syntax::source_map::Span;
use rustc_span::source_map::Span;
mod different_lifetimes;
mod find_anon_type;

View file

@ -9,10 +9,10 @@ use crate::middle::stability;
use crate::session::Session;
use errors::{pluralize, Applicability, DiagnosticBuilder};
use rustc_session::declare_lint;
use rustc_span::source_map::Span;
use syntax::ast;
use syntax::early_buffered_lints::{ILL_FORMED_ATTRIBUTE_INPUT, META_VARIABLE_MISUSE};
use syntax::edition::Edition;
use syntax::source_map::Span;
use syntax::symbol::Symbol;
declare_lint! {

View file

@ -9,11 +9,11 @@ use crate::session::Session;
use crate::util::nodemap::FxHashMap;
use errors::{Applicability, DiagnosticBuilder};
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use rustc_span::source_map::MultiSpan;
use syntax::ast;
use syntax::attr;
use syntax::feature_gate;
use syntax::print::pprust;
use syntax::source_map::MultiSpan;
use syntax::symbol::{sym, Symbol};
use rustc_error_codes::*;

View file

@ -33,9 +33,9 @@ use crate::ty::TyCtxt;
use crate::util::nodemap::NodeMap;
use errors::{DiagnosticBuilder, DiagnosticId};
use rustc_span::hygiene::MacroKind;
use rustc_span::source_map::{DesugaringKind, ExpnKind, MultiSpan};
use rustc_span::Span;
use syntax::ast;
use syntax::source_map::{DesugaringKind, ExpnKind, MultiSpan};
use syntax::symbol::Symbol;
pub use crate::lint::context::{

View file

@ -8,10 +8,10 @@ use crate::ty::{subst::InternalSubsts, Instance, InstanceDef, SymbolName, TyCtxt
use crate::util::nodemap::FxHashMap;
use rustc_data_structures::base_n;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use rustc_span::source_map::Span;
use std::fmt;
use std::hash::Hash;
use syntax::attr::InlineAttr;
use syntax::source_map::Span;
use syntax::symbol::Symbol;
/// Describes how a monomorphization will be instantiated in object files.

View file

@ -3,8 +3,8 @@ use crate::infer::canonical::OriginalQueryValues;
use crate::infer::InferOk;
use crate::ty::subst::GenericArg;
use crate::ty::{self, Ty, TyCtxt};
use rustc_span::source_map::Span;
use std::iter::FromIterator;
use syntax::source_map::Span;
use rustc_error_codes::*;

View file

@ -4,7 +4,7 @@ use crate::infer::InferCtxt;
use crate::traits::query::NoSolution;
use crate::traits::{FulfillmentContext, ObligationCause, TraitEngine, TraitEngineExt};
use crate::ty::{self, Ty};
use syntax::source_map::Span;
use rustc_span::source_map::Span;
use crate::ich::StableHashingContext;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};

View file

@ -5,8 +5,8 @@ use std::fmt;
use crate::infer::canonical::query_response;
use crate::infer::canonical::QueryRegionConstraints;
use crate::traits::{ObligationCause, TraitEngine, TraitEngineExt};
use rustc_span::source_map::DUMMY_SP;
use std::rc::Rc;
use syntax::source_map::DUMMY_SP;
pub struct CustomTypeOp<F, G> {
closure: F,

View file

@ -59,6 +59,7 @@ use rustc_data_structures::stable_hasher::{
use rustc_data_structures::sync::{Lock, Lrc, WorkerLocal};
use rustc_index::vec::{Idx, IndexVec};
use rustc_macros::HashStable;
use rustc_span::source_map::MultiSpan;
use rustc_span::Span;
use rustc_target::spec::abi;
use smallvec::SmallVec;
@ -75,7 +76,6 @@ use std::sync::Arc;
use syntax::ast;
use syntax::attr;
use syntax::expand::allocator::AllocatorKind;
use syntax::source_map::MultiSpan;
use syntax::symbol::{kw, sym, Symbol};
pub struct AllArenas {

View file

@ -21,10 +21,10 @@ use rustc_serialize::{
UseSpecializedDecodable, UseSpecializedEncodable,
};
use rustc_span::hygiene::{ExpnId, SyntaxContext};
use rustc_span::source_map::{SourceMap, StableSourceFileId};
use rustc_span::{BytePos, SourceFile, Span, DUMMY_SP};
use std::mem;
use syntax::ast::{Ident, NodeId};
use syntax::source_map::{SourceMap, StableSourceFileId};
const TAG_FILE_FOOTER: u128 = 0xC0FFEE_C0FFEE_C0FFEE_C0FFEE_C0FFEE;

View file

@ -20,12 +20,12 @@ use rustc_data_structures::fx::{FxHashMap, FxHasher};
use rustc_data_structures::sharded::Sharded;
use rustc_data_structures::sync::{Lock, Lrc};
use rustc_data_structures::thin_vec::ThinVec;
use rustc_span::source_map::DUMMY_SP;
use rustc_span::Span;
use std::collections::hash_map::Entry;
use std::hash::{Hash, Hasher};
use std::mem;
use std::ptr;
use syntax::source_map::DUMMY_SP;
use rustc_error_codes::*;