Normalize syntax::symbol imports.
This commit is contained in:
parent
75e4783f63
commit
4ff12ce4c1
174 changed files with 188 additions and 184 deletions
|
|
@ -94,7 +94,7 @@ macro_rules! arena_types {
|
|||
>
|
||||
>,
|
||||
[few] diagnostic_items: rustc_data_structures::fx::FxHashMap<
|
||||
syntax::symbol::Symbol,
|
||||
rustc_span::symbol::Symbol,
|
||||
rustc::hir::def_id::DefId,
|
||||
>,
|
||||
[few] resolve_lifetimes: rustc::middle::resolve_lifetime::ResolveLifetimes,
|
||||
|
|
@ -105,7 +105,7 @@ macro_rules! arena_types {
|
|||
[few] privacy_access_levels: rustc::middle::privacy::AccessLevels,
|
||||
[few] target_features_whitelist: rustc_data_structures::fx::FxHashMap<
|
||||
String,
|
||||
Option<syntax::symbol::Symbol>
|
||||
Option<rustc_span::symbol::Symbol>
|
||||
>,
|
||||
[few] wasm_import_module_map: rustc_data_structures::fx::FxHashMap<
|
||||
rustc::hir::def_id::DefId,
|
||||
|
|
|
|||
|
|
@ -12,11 +12,12 @@ use crate::lint::builtin::UNUSED_ATTRIBUTES;
|
|||
use crate::ty::query::Providers;
|
||||
use crate::ty::TyCtxt;
|
||||
|
||||
use rustc_span::Span;
|
||||
use std::fmt::{self, Display};
|
||||
use syntax::{attr, symbol::sym};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
use rustc_span::symbol::sym;
|
||||
use rustc_span::Span;
|
||||
use syntax::attr;
|
||||
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub(crate) enum MethodKind {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use rustc_span::source_map::{SourceMap, Spanned};
|
||||
use rustc_span::symbol::kw;
|
||||
use rustc_span::{self, BytePos, FileName};
|
||||
use rustc_target::spec::abi::Abi;
|
||||
use syntax::ast;
|
||||
|
|
@ -6,7 +7,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::symbol::kw;
|
||||
use syntax::util::parser::{self, AssocOp, Fixity};
|
||||
|
||||
use crate::hir;
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ use crate::ty::{fast_reject, TyCtxt};
|
|||
use std::cmp::Ord;
|
||||
|
||||
use rustc_span::source_map::SourceMap;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{BytePos, SourceFile};
|
||||
use syntax::ast;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, ToStableHashKey};
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ pub use self::hcx::{
|
|||
hash_stable_trait_impls, NodeIdHashingMode, StableHashingContext, StableHashingContextProvider,
|
||||
};
|
||||
crate use rustc_data_structures::fingerprint::Fingerprint;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
pub use rustc_span::CachingSourceMapView;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
mod hcx;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ 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::symbol::kw;
|
||||
use rustc_span::Span;
|
||||
use std::borrow::Cow;
|
||||
use syntax::symbol::kw;
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::hir::def_id::DefId;
|
||||
use crate::ty::{self, Ty, TyVid};
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::Span;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
use rustc_data_structures::snapshot_vec as sv;
|
||||
use rustc_data_structures::unify as ut;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use crate::ty::{self, FloatVarValue, InferConst, IntVarValue, Ty, TyCtxt};
|
||||
use rustc_data_structures::unify::InPlace;
|
||||
use rustc_data_structures::unify::{EqUnifyValue, NoError, UnificationTable, UnifyKey, UnifyValue};
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
use std::cell::RefMut;
|
||||
use std::cmp;
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ use crate::session::Session;
|
|||
use errors::{pluralize, Applicability, DiagnosticBuilder};
|
||||
use rustc_session::declare_lint;
|
||||
use rustc_span::source_map::Span;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use syntax::ast;
|
||||
use syntax::early_buffered_lints::{ILL_FORMED_ATTRIBUTE_INPUT, META_VARIABLE_MISUSE};
|
||||
use syntax::edition::Edition;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
declare_lint! {
|
||||
pub EXCEEDING_BITSHIFTS,
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ use crate::lint::{
|
|||
use errors::Applicability;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_session::declare_tool_lint;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use syntax::ast::{Ident, Item, ItemKind};
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
declare_tool_lint! {
|
||||
pub rustc::DEFAULT_HASH_TYPES,
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ use crate::util::nodemap::FxHashMap;
|
|||
use errors::{Applicability, DiagnosticBuilder};
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
||||
use rustc_span::source_map::MultiSpan;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use syntax::ast;
|
||||
use syntax::attr;
|
||||
use syntax::feature_gate;
|
||||
use syntax::print::pprust;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ 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::symbol::Symbol;
|
||||
use rustc_span::Span;
|
||||
use syntax::ast;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
pub use crate::lint::context::{
|
||||
check_ast_crate, check_crate, late_lint_mod, BufferedEarlyLint, CheckLintNameResult,
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ use rustc_data_structures::svh::Svh;
|
|||
|
||||
use rustc_data_structures::sync::{self, MetadataRef};
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::Span;
|
||||
use rustc_target::spec::Target;
|
||||
use std::any::Any;
|
||||
use std::path::{Path, PathBuf};
|
||||
use syntax::ast;
|
||||
use syntax::expand::allocator::AllocatorKind;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
pub use self::NativeLibraryKind::*;
|
||||
pub use rustc_session::utils::NativeLibraryKind;
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ use crate::util::nodemap::FxHashMap;
|
|||
use crate::hir;
|
||||
use crate::hir::itemlikevisit::ItemLikeVisitor;
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::Span;
|
||||
use syntax::ast;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ pub mod free_region;
|
|||
pub mod lang_items;
|
||||
pub mod lib_features {
|
||||
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
||||
use syntax::symbol::Symbol;
|
||||
use rustc_span::symbol::Symbol;
|
||||
|
||||
#[derive(HashStable)]
|
||||
pub struct LibFeatures {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
// just peeks and looks for that attribute.
|
||||
|
||||
use crate::session::Session;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use syntax::ast;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
use rustc_data_structures::sync::Once;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ use crate::ty::{self, TyCtxt};
|
|||
use crate::util::nodemap::{FxHashMap, FxHashSet};
|
||||
use errors::DiagnosticBuilder;
|
||||
use rustc_feature::GateIssue;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::{MultiSpan, Span};
|
||||
use syntax::ast::CRATE_NODE_ID;
|
||||
use syntax::attr::{self, ConstStability, Deprecation, RustcDeprecation, Stability};
|
||||
use syntax::errors::Applicability;
|
||||
use syntax::feature_gate::feature_err_issue;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
use std::num::NonZeroU32;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ use crate::hir::intravisit;
|
|||
use crate::hir::intravisit::{NestedVisitorMap, Visitor};
|
||||
use crate::ty::TyCtxt;
|
||||
use rustc_data_structures::fx::FxHashSet;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
use rustc_span::Span;
|
||||
use rustc_target::spec::PanicStrategy;
|
||||
use syntax::ast;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ use backtrace::Backtrace;
|
|||
use errors::DiagnosticBuilder;
|
||||
use hir::GeneratorKind;
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{Pos, Span};
|
||||
use rustc_target::spec::abi::Abi;
|
||||
use std::{any::Any, env, fmt};
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ use rustc_index::bit_set::BitMatrix;
|
|||
use rustc_index::vec::{Idx, IndexVec};
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_serialize::{Decodable, Encodable};
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use smallvec::SmallVec;
|
||||
use std::borrow::Cow;
|
||||
|
|
@ -36,7 +37,6 @@ use std::slice;
|
|||
use std::{iter, mem, option, u32};
|
||||
pub use syntax::ast::Mutability;
|
||||
use syntax::ast::Name;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
pub use crate::mir::cache::{BodyAndCache, ReadOnlyBodyAndCache};
|
||||
pub use crate::mir::interpret::AssertMessage;
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ 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 rustc_span::symbol::Symbol;
|
||||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
use syntax::attr::InlineAttr;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
/// Describes how a monomorphization will be instantiated in object files.
|
||||
#[derive(PartialEq)]
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ use crate::traits::{self, Normalized, Obligation, ObligationCause, SelectionCont
|
|||
use crate::ty::fold::TypeFoldable;
|
||||
use crate::ty::subst::Subst;
|
||||
use crate::ty::{self, Ty, TyCtxt};
|
||||
use rustc_span::symbol::sym;
|
||||
use rustc_span::DUMMY_SP;
|
||||
use syntax::symbol::sym;
|
||||
|
||||
/// Whether we do the orphan check relative to this crate or
|
||||
/// to some remote crate.
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ use crate::util::nodemap::{FxHashMap, FxHashSet};
|
|||
use errors::{pluralize, Applicability, DiagnosticBuilder, Style};
|
||||
use rustc::hir::def_id::LOCAL_CRATE;
|
||||
use rustc_span::source_map::SourceMap;
|
||||
use rustc_span::symbol::{kw, sym};
|
||||
use rustc_span::{ExpnKind, MultiSpan, Span, DUMMY_SP};
|
||||
use std::fmt;
|
||||
use syntax::ast;
|
||||
use syntax::symbol::{kw, sym};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ use crate::lint;
|
|||
use crate::traits::{self, Obligation, ObligationCause};
|
||||
use crate::ty::subst::{InternalSubsts, Subst};
|
||||
use crate::ty::{self, Predicate, ToPredicate, Ty, TyCtxt, TypeFoldable};
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use std::borrow::Cow;
|
||||
use std::iter::{self};
|
||||
use syntax::ast::{self};
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub enum ObjectSafetyViolation {
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ use crate::ty::{self, GenericParamDefKind, TyCtxt};
|
|||
use crate::util::common::ErrorReported;
|
||||
use crate::util::nodemap::FxHashMap;
|
||||
|
||||
use rustc_span::symbol::{kw, sym, Symbol};
|
||||
use rustc_span::Span;
|
||||
use syntax::ast::{MetaItem, NestedMetaItem};
|
||||
use syntax::attr;
|
||||
use syntax::symbol::{kw, sym, Symbol};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ use crate::ty::{self, ToPolyTraitRef, ToPredicate, Ty, TyCtxt};
|
|||
use crate::util::common::FN_OUTPUT_NAME;
|
||||
use rustc_data_structures::snapshot_map::{Snapshot, SnapshotMap};
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::symbol::sym;
|
||||
use rustc_span::DUMMY_SP;
|
||||
use syntax::ast::Ident;
|
||||
use syntax::symbol::sym;
|
||||
|
||||
/// Depending on the stage of compilation, we want projection to be
|
||||
/// more or less conservative.
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ use crate::hir;
|
|||
use crate::util::nodemap::{FxHashMap, FxHashSet};
|
||||
use rustc_data_structures::sync::Lock;
|
||||
use rustc_index::bit_set::GrowableBitSet;
|
||||
use rustc_span::symbol::sym;
|
||||
use rustc_target::spec::abi::Abi;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::cmp;
|
||||
|
|
@ -49,7 +50,6 @@ use std::fmt::{self, Display};
|
|||
use std::iter;
|
||||
use std::rc::Rc;
|
||||
use syntax::attr;
|
||||
use syntax::symbol::sym;
|
||||
|
||||
pub struct SelectionContext<'cx, 'tcx> {
|
||||
infcx: &'cx InferCtxt<'cx, 'tcx>,
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ use crate::traits::project::Normalized;
|
|||
use crate::ty::fold::{TypeFoldable, TypeFolder, TypeVisitor};
|
||||
use crate::ty::{self, Lift, Ty, TyCtxt};
|
||||
use chalk_engine;
|
||||
use rustc_span::symbol::Symbol;
|
||||
use smallvec::SmallVec;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
use std::collections::{BTreeMap, BTreeSet};
|
||||
use std::fmt;
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ 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::symbol::{kw, sym, Symbol};
|
||||
use rustc_span::Span;
|
||||
use rustc_target::spec::abi;
|
||||
use smallvec::SmallVec;
|
||||
|
|
@ -76,7 +77,6 @@ use std::sync::Arc;
|
|||
use syntax::ast;
|
||||
use syntax::attr;
|
||||
use syntax::expand::allocator::AllocatorKind;
|
||||
use syntax::symbol::{kw, sym, Symbol};
|
||||
|
||||
pub struct AllArenas {
|
||||
pub interner: SyncDroplessArena,
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ use crate::ty::{self, DefIdTree, ParamConst, Ty, TyCtxt, TypeFoldable};
|
|||
|
||||
use rustc_apfloat::ieee::{Double, Single};
|
||||
use rustc_apfloat::Float;
|
||||
use rustc_span::symbol::{kw, Symbol};
|
||||
use rustc_target::spec::abi::Abi;
|
||||
use syntax::ast;
|
||||
use syntax::attr::{SignedInt, UnsignedInt};
|
||||
use syntax::symbol::{kw, Symbol};
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::collections::BTreeMap;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ use rustc_data_structures::sync::Lrc;
|
|||
use rustc_index::vec::IndexVec;
|
||||
use rustc_target::spec::PanicStrategy;
|
||||
|
||||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
use std::any::type_name;
|
||||
use std::borrow::Cow;
|
||||
|
|
@ -54,7 +55,6 @@ use std::ops::Deref;
|
|||
use std::sync::Arc;
|
||||
use syntax::ast;
|
||||
use syntax::attr;
|
||||
use syntax::symbol::Symbol;
|
||||
|
||||
#[macro_use]
|
||||
mod plumbing;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::ty::util::NeedsDrop;
|
||||
use crate::ty::{self, AdtSizedConstraint, Ty, TyCtxt};
|
||||
|
||||
use syntax::symbol::Symbol;
|
||||
use rustc_span::symbol::Symbol;
|
||||
|
||||
pub(super) trait Value<'tcx>: Sized {
|
||||
fn from_cycle_error(tcx: TyCtxt<'tcx>) -> Self;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use crate::util::captures::Captures;
|
|||
use polonius_engine::Atom;
|
||||
use rustc_index::vec::Idx;
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::symbol::{kw, Symbol};
|
||||
use rustc_target::spec::abi;
|
||||
use smallvec::SmallVec;
|
||||
use std::borrow::Cow;
|
||||
|
|
@ -27,7 +28,6 @@ use std::cmp::Ordering;
|
|||
use std::marker::PhantomData;
|
||||
use std::ops::Range;
|
||||
use syntax::ast::{self, Ident};
|
||||
use syntax::symbol::{kw, Symbol};
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ use crate::middle::lang_items;
|
|||
use crate::traits::{self, AssocTypeBoundData};
|
||||
use crate::ty::subst::SubstsRef;
|
||||
use crate::ty::{self, ToPredicate, Ty, TyCtxt, TypeFoldable};
|
||||
use rustc_span::symbol::{kw, Ident};
|
||||
use rustc_span::Span;
|
||||
use std::iter::once;
|
||||
use syntax::symbol::{kw, Ident};
|
||||
|
||||
/// Returns the set of obligations needed to make `ty` well-formed.
|
||||
/// If `ty` contains unresolved inference variables, this may include
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ use std::fmt::Debug;
|
|||
use std::time::{Duration, Instant};
|
||||
|
||||
use crate::session::Session;
|
||||
use syntax::symbol::{sym, Symbol};
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue