remove indexed_vec re-export from rustc_data_structures

This commit is contained in:
csmoe 2019-09-26 05:38:33 +00:00
parent d20183dbbf
commit 64f61c7888
125 changed files with 168 additions and 164 deletions

View File

@ -3342,7 +3342,6 @@ dependencies = [
name = "rustc_codegen_llvm" name = "rustc_codegen_llvm"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"rustc_index",
"rustc_llvm", "rustc_llvm",
] ]
@ -3519,6 +3518,7 @@ dependencies = [
"log", "log",
"rustc", "rustc",
"rustc_data_structures", "rustc_data_structures",
"rustc_index",
"rustc_target", "rustc_target",
"syntax", "syntax",
"syntax_pos", "syntax_pos",
@ -3687,6 +3687,7 @@ dependencies = [
"bitflags", "bitflags",
"log", "log",
"rustc_data_structures", "rustc_data_structures",
"rustc_index",
"serialize", "serialize",
"syntax_pos", "syntax_pos",
] ]
@ -3735,6 +3736,7 @@ dependencies = [
"rustc", "rustc",
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_index",
"rustc_target", "rustc_target",
"smallvec", "smallvec",
"syntax", "syntax",
@ -4281,6 +4283,7 @@ dependencies = [
"arena", "arena",
"cfg-if", "cfg-if",
"rustc_data_structures", "rustc_data_structures",
"rustc_index",
"rustc_macros", "rustc_macros",
"scoped-tls", "scoped-tls",
"serialize", "serialize",

View File

@ -26,12 +26,12 @@ macro_rules! arena_types {
[] steal_mir: rustc::ty::steal::Steal<rustc::mir::Body<$tcx>>, [] steal_mir: rustc::ty::steal::Steal<rustc::mir::Body<$tcx>>,
[] mir: rustc::mir::Body<$tcx>, [] mir: rustc::mir::Body<$tcx>,
[] steal_promoted: rustc::ty::steal::Steal< [] steal_promoted: rustc::ty::steal::Steal<
rustc_data_structures::indexed_vec::IndexVec< rustc_index::vec::IndexVec<
rustc::mir::Promoted, rustc::mir::Promoted,
rustc::mir::Body<$tcx> rustc::mir::Body<$tcx>
> >
>, >,
[] promoted: rustc_data_structures::indexed_vec::IndexVec< [] promoted: rustc_index::vec::IndexVec<
rustc::mir::Promoted, rustc::mir::Promoted,
rustc::mir::Body<$tcx> rustc::mir::Body<$tcx>
>, >,

View File

@ -1,7 +1,7 @@
use errors::Diagnostic; use errors::Diagnostic;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use smallvec::SmallVec; use smallvec::SmallVec;
use rustc_data_structures::sync::{Lrc, Lock, AtomicU32, Ordering}; use rustc_data_structures::sync::{Lrc, Lock, AtomicU32, Ordering};
use std::env; use std::env;
@ -26,7 +26,7 @@ pub struct DepGraph {
data: Option<Lrc<DepGraphData>>, data: Option<Lrc<DepGraphData>>,
} }
newtype_index! { rustc_index::newtype_index! {
pub struct DepNodeIndex { .. } pub struct DepNodeIndex { .. }
} }

View File

@ -2,9 +2,9 @@
use crate::dep_graph::DepNode; use crate::dep_graph::DepNode;
use crate::ich::Fingerprint; use crate::ich::Fingerprint;
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_index::vec::{IndexVec, Idx};
newtype_index! { rustc_index::newtype_index! {
pub struct SerializedDepNodeIndex { .. } pub struct SerializedDepNodeIndex { .. }
} }

View File

@ -1,9 +1,9 @@
use crate::ty::{self, TyCtxt}; use crate::ty::{self, TyCtxt};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use std::fmt; use std::fmt;
use std::u32; use std::u32;
newtype_index! { rustc_index::newtype_index! {
pub struct CrateId { pub struct CrateId {
ENCODABLE = custom ENCODABLE = custom
} }
@ -87,7 +87,7 @@ impl fmt::Display for CrateNum {
impl rustc_serialize::UseSpecializedEncodable for CrateNum {} impl rustc_serialize::UseSpecializedEncodable for CrateNum {}
impl rustc_serialize::UseSpecializedDecodable for CrateNum {} impl rustc_serialize::UseSpecializedDecodable for CrateNum {}
newtype_index! { rustc_index::newtype_index! {
/// A DefIndex is an index into the hir-map for a crate, identifying a /// A DefIndex is an index into the hir-map for a crate, identifying a
/// particular definition. It should really be considered an interned /// particular definition. It should really be considered an interned
/// shorthand for a particular DefPath. /// shorthand for a particular DefPath.

View File

@ -52,7 +52,7 @@ use crate::util::common::FN_OUTPUT_NAME;
use crate::util::nodemap::{DefIdMap, NodeMap}; use crate::util::nodemap::{DefIdMap, NodeMap};
use errors::Applicability; use errors::Applicability;
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::thin_vec::ThinVec; use rustc_data_structures::thin_vec::ThinVec;
use rustc_data_structures::sync::Lrc; use rustc_data_structures::sync::Lrc;

View File

@ -5,7 +5,7 @@ use crate::hir::map::HirEntryMap;
use crate::hir::def_id::{LOCAL_CRATE, CrateNum}; use crate::hir::def_id::{LOCAL_CRATE, CrateNum};
use crate::hir::intravisit::{Visitor, NestedVisitorMap}; use crate::hir::intravisit::{Visitor, NestedVisitorMap};
use rustc_data_structures::svh::Svh; use rustc_data_structures::svh::Svh;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use crate::ich::Fingerprint; use crate::ich::Fingerprint;
use crate::middle::cstore::CrateStore; use crate::middle::cstore::CrateStore;
use crate::session::CrateDisambiguator; use crate::session::CrateDisambiguator;

View File

@ -11,7 +11,7 @@ use crate::session::CrateDisambiguator;
use crate::util::nodemap::NodeMap; use crate::util::nodemap::NodeMap;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::{IndexVec}; use rustc_index::vec::{IndexVec};
use rustc_data_structures::stable_hasher::StableHasher; use rustc_data_structures::stable_hasher::StableHasher;
use std::borrow::Borrow; use std::borrow::Borrow;
use std::fmt::Write; use std::fmt::Write;

View File

@ -17,7 +17,7 @@ use crate::util::common::time;
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;
use rustc_data_structures::svh::Svh; use rustc_data_structures::svh::Svh;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use syntax::ast::{self, Name, NodeId}; use syntax::ast::{self, Name, NodeId};
use syntax::source_map::Spanned; use syntax::source_map::Spanned;
use syntax::ext::base::MacroKind; use syntax::ext::base::MacroKind;

View File

@ -122,9 +122,9 @@ impl fmt::Display for HirId {
// Hack to ensure that we don't try to access the private parts of `ItemLocalId` in this module. // Hack to ensure that we don't try to access the private parts of `ItemLocalId` in this module.
mod item_local_id_inner { mod item_local_id_inner {
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_macros::HashStable; use rustc_macros::HashStable;
newtype_index! { rustc_index::newtype_index! {
/// An `ItemLocalId` uniquely identifies something within a given "item-like"; /// An `ItemLocalId` uniquely identifies something within a given "item-like";
/// that is, within a `hir::Item`, `hir::TraitItem`, or `hir::ImplItem`. There is no /// that is, within a `hir::Item`, `hir::TraitItem`, or `hir::ImplItem`. There is no
/// guarantee that the numerical value of a given `ItemLocalId` corresponds to /// guarantee that the numerical value of a given `ItemLocalId` corresponds to

View File

@ -18,7 +18,7 @@ use crate::ty::{self, BoundVar, InferConst, List, Ty, TyCtxt, TypeFlags};
use crate::ty::flags::FlagComputation; use crate::ty::flags::FlagComputation;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use smallvec::SmallVec; use smallvec::SmallVec;
impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> { impl<'cx, 'tcx> InferCtxt<'cx, 'tcx> {

View File

@ -25,7 +25,7 @@ use crate::infer::{InferCtxt, RegionVariableOrigin, TypeVariableOrigin, TypeVari
use crate::infer::{ConstVariableOrigin, ConstVariableOriginKind}; use crate::infer::{ConstVariableOrigin, ConstVariableOriginKind};
use crate::infer::region_constraints::MemberConstraint; use crate::infer::region_constraints::MemberConstraint;
use crate::mir::interpret::ConstValue; use crate::mir::interpret::ConstValue;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_macros::HashStable; use rustc_macros::HashStable;
use rustc_serialize::UseSpecializedDecodable; use rustc_serialize::UseSpecializedDecodable;
use smallvec::SmallVec; use smallvec::SmallVec;

View File

@ -17,8 +17,8 @@ use crate::infer::region_constraints::{Constraint, RegionConstraintData};
use crate::infer::InferCtxtBuilder; use crate::infer::InferCtxtBuilder;
use crate::infer::{InferCtxt, InferOk, InferResult}; use crate::infer::{InferCtxt, InferOk, InferResult};
use crate::mir::interpret::ConstValue; use crate::mir::interpret::ConstValue;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use std::fmt::Debug; use std::fmt::Debug;
use syntax_pos::DUMMY_SP; use syntax_pos::DUMMY_SP;
use crate::traits::query::{Fallible, NoSolution}; use crate::traits::query::{Fallible, NoSolution};

View File

@ -19,7 +19,7 @@ use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::graph::implementation::{ use rustc_data_structures::graph::implementation::{
Direction, Graph, NodeIndex, INCOMING, OUTGOING, Direction, Graph, NodeIndex, INCOMING, OUTGOING,
}; };
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use smallvec::SmallVec; use smallvec::SmallVec;
use std::fmt; use std::fmt;
use syntax_pos::Span; use syntax_pos::Span;

View File

@ -7,7 +7,7 @@ use super::unify_key;
use super::{MiscVariable, RegionVariableOrigin, SubregionOrigin}; use super::{MiscVariable, RegionVariableOrigin, SubregionOrigin};
use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::sync::Lrc; use rustc_data_structures::sync::Lrc;
use rustc_data_structures::unify as ut; use rustc_data_structures::unify as ut;
use crate::hir::def_id::DefId; use crate::hir::def_id::DefId;

View File

@ -5,7 +5,7 @@ use crate::ty::layout::{LayoutError, Pointer, SizeSkeleton, VariantIdx};
use crate::ty::query::Providers; use crate::ty::query::Providers;
use rustc_target::spec::abi::Abi::RustIntrinsic; use rustc_target::spec::abi::Abi::RustIntrinsic;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use syntax_pos::{Span, sym}; use syntax_pos::{Span, sym};
use crate::hir::intravisit::{self, Visitor, NestedVisitorMap}; use crate::hir::intravisit::{self, Visitor, NestedVisitorMap};
use crate::hir; use crate::hir;

View File

@ -16,8 +16,8 @@ use crate::util::nodemap::{FxHashMap, FxHashSet};
use crate::ty::{self, DefIdTree, TyCtxt}; use crate::ty::{self, DefIdTree, TyCtxt};
use crate::ty::query::Providers; use crate::ty::query::Providers;
use rustc_data_structures::indexed_vec::Idx;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use rustc_index::vec::Idx;
use rustc_macros::HashStable; use rustc_macros::HashStable;
use syntax::source_map; use syntax::source_map;
use syntax_pos::{Span, DUMMY_SP}; use syntax_pos::{Span, DUMMY_SP};
@ -131,7 +131,7 @@ pub enum ScopeData {
Remainder(FirstStatementIndex) Remainder(FirstStatementIndex)
} }
newtype_index! { rustc_index::newtype_index! {
/// Represents a subscope of `block` for a binding that is introduced /// Represents a subscope of `block` for a binding that is introduced
/// by `block.stmts[first_statement_index]`. Such subscopes represent /// by `block.stmts[first_statement_index]`. Such subscopes represent
/// a suffix of the block. Note that each subscope does not include /// a suffix of the block. Note that each subscope does not include

View File

@ -1,4 +1,4 @@
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::sync::{RwLock, MappedReadGuard, ReadGuard}; use rustc_data_structures::sync::{RwLock, MappedReadGuard, ReadGuard};
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use rustc_serialize::{Encodable, Encoder, Decodable, Decoder}; use rustc_serialize::{Encodable, Encoder, Decodable, Decoder};

View File

@ -24,7 +24,7 @@ use rustc_index::bit_set::BitMatrix;
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::graph::dominators::{dominators, Dominators}; use rustc_data_structures::graph::dominators::{dominators, Dominators};
use rustc_data_structures::graph::{self, GraphPredecessors, GraphSuccessors}; use rustc_data_structures::graph::{self, GraphPredecessors, GraphSuccessors};
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use rustc_data_structures::sync::Lrc; use rustc_data_structures::sync::Lrc;
use rustc_data_structures::sync::MappedReadGuard; use rustc_data_structures::sync::MappedReadGuard;
use rustc_macros::HashStable; use rustc_macros::HashStable;
@ -581,7 +581,7 @@ impl BorrowKind {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// Variables and temps // Variables and temps
newtype_index! { rustc_index::newtype_index! {
pub struct Local { pub struct Local {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "_{}", DEBUG_FORMAT = "_{}",
@ -994,7 +994,7 @@ pub struct UpvarDebuginfo {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// BasicBlock // BasicBlock
newtype_index! { rustc_index::newtype_index! {
pub struct BasicBlock { pub struct BasicBlock {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "bb{}", DEBUG_FORMAT = "bb{}",
@ -1832,7 +1832,7 @@ static_assert_size!(PlaceElem<'_>, 16);
/// need neither the `V` parameter for `Index` nor the `T` for `Field`. /// need neither the `V` parameter for `Index` nor the `T` for `Field`.
pub type ProjectionKind = ProjectionElem<(), ()>; pub type ProjectionKind = ProjectionElem<(), ()>;
newtype_index! { rustc_index::newtype_index! {
pub struct Field { pub struct Field {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "field[{}]" DEBUG_FORMAT = "field[{}]"
@ -2047,7 +2047,7 @@ impl Debug for PlaceBase<'_> {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// Scopes // Scopes
newtype_index! { rustc_index::newtype_index! {
pub struct SourceScope { pub struct SourceScope {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "scope[{}]", DEBUG_FORMAT = "scope[{}]",
@ -2586,7 +2586,7 @@ impl<'tcx> TypeFoldable<'tcx> for UserTypeProjection {
} }
} }
newtype_index! { rustc_index::newtype_index! {
pub struct Promoted { pub struct Promoted {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "promoted[{}]" DEBUG_FORMAT = "promoted[{}]"
@ -2743,7 +2743,7 @@ pub struct UnsafetyCheckResult {
pub unsafe_blocks: Lrc<[(hir::HirId, bool)]>, pub unsafe_blocks: Lrc<[(hir::HirId, bool)]>,
} }
newtype_index! { rustc_index::newtype_index! {
pub struct GeneratorSavedLocal { pub struct GeneratorSavedLocal {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "_{}", DEBUG_FORMAT = "_{}",

View File

@ -132,7 +132,7 @@ rustc_queries! {
cache_on_disk_if { key.is_local() } cache_on_disk_if { key.is_local() }
load_cached(tcx, id) { load_cached(tcx, id) {
let promoted: Option< let promoted: Option<
rustc_data_structures::indexed_vec::IndexVec< rustc_index::vec::IndexVec<
crate::mir::Promoted, crate::mir::Promoted,
crate::mir::Body<'tcx> crate::mir::Body<'tcx>
>> = tcx.queries.on_disk_cache.try_load_query_result(tcx, id); >> = tcx.queries.on_disk_cache.try_load_query_result(tcx, id);

View File

@ -52,7 +52,7 @@ use smallvec::SmallVec;
use rustc_data_structures::stable_hasher::{ use rustc_data_structures::stable_hasher::{
HashStable, StableHasher, StableVec, hash_stable_hashmap, HashStable, StableHasher, StableVec, hash_stable_hashmap,
}; };
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use rustc_data_structures::sharded::ShardedHashMap; use rustc_data_structures::sharded::ShardedHashMap;
use rustc_data_structures::sync::{Lrc, Lock, WorkerLocal}; use rustc_data_structures::sync::{Lrc, Lock, WorkerLocal};
use std::any::Any; use std::any::Any;
@ -777,7 +777,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TypeckTables<'tcx> {
} }
} }
newtype_index! { rustc_index::newtype_index! {
pub struct UserTypeAnnotationIndex { pub struct UserTypeAnnotationIndex {
derive [HashStable] derive [HashStable]
DEBUG_FORMAT = "UserType({})", DEBUG_FORMAT = "UserType({})",

View File

@ -18,8 +18,8 @@ use crate::mir::{GeneratorLayout, GeneratorSavedLocal};
use crate::ty::GeneratorSubsts; use crate::ty::GeneratorSubsts;
use crate::ty::subst::Subst; use crate::ty::subst::Subst;
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{IndexVec, Idx};
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use rustc_index::vec::{IndexVec, Idx};
pub use rustc_target::abi::*; pub use rustc_target::abi::*;
use rustc_target::spec::{HasTargetSpec, abi::Abi as SpecAbi}; use rustc_target::spec::{HasTargetSpec, abi::Abi as SpecAbi};

View File

@ -51,8 +51,8 @@ use syntax_pos::Span;
use smallvec; use smallvec;
use rustc_data_structures::fx::FxIndexMap; use rustc_data_structures::fx::FxIndexMap;
use rustc_data_structures::indexed_vec::{Idx, IndexVec};
use rustc_data_structures::stable_hasher::{StableHasher, HashStable}; use rustc_data_structures::stable_hasher::{StableHasher, HashStable};
use rustc_index::vec::{Idx, IndexVec};
use crate::hir; use crate::hir;
@ -1536,7 +1536,7 @@ impl<'tcx> InstantiatedPredicates<'tcx> {
} }
} }
newtype_index! { rustc_index::newtype_index! {
/// "Universes" are used during type- and trait-checking in the /// "Universes" are used during type- and trait-checking in the
/// presence of `for<..>` binders to control what sets of names are /// presence of `for<..>` binders to control what sets of names are
/// visible. Universes are arranged into a tree: the root universe /// visible. Universes are arranged into a tree: the root universe

View File

@ -43,7 +43,7 @@ use crate::util::profiling::ProfileCategory::*;
use rustc_data_structures::svh::Svh; use rustc_data_structures::svh::Svh;
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::fx::{FxIndexMap, FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxIndexMap, FxHashMap, FxHashSet};
use rustc_data_structures::stable_hasher::StableVec; use rustc_data_structures::stable_hasher::StableVec;
use rustc_data_structures::sync::Lrc; use rustc_data_structures::sync::Lrc;

View File

@ -15,7 +15,7 @@ use errors::Diagnostic;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::thin_vec::ThinVec; use rustc_data_structures::thin_vec::ThinVec;
use rustc_data_structures::sync::{Lrc, Lock, HashMapExt, Once}; use rustc_data_structures::sync::{Lrc, Lock, HashMapExt, Once};
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_index::vec::{IndexVec, Idx};
use rustc_serialize::{ use rustc_serialize::{
Decodable, Decoder, Encodable, Encoder, SpecializedDecoder, SpecializedEncoder, Decodable, Decoder, Encodable, Encoder, SpecializedDecoder, SpecializedEncoder,
UseSpecializedDecodable, UseSpecializedEncodable, opaque, UseSpecializedDecodable, UseSpecializedEncodable, opaque,

View File

@ -9,7 +9,7 @@ use crate::mir::interpret::ConstValue;
use crate::ty::{self, Lift, Ty, TyCtxt, InferConst}; use crate::ty::{self, Lift, Ty, TyCtxt, InferConst};
use crate::ty::fold::{TypeFoldable, TypeFolder, TypeVisitor}; use crate::ty::fold::{TypeFoldable, TypeFolder, TypeVisitor};
use crate::ty::print::{FmtPrinter, Printer}; use crate::ty::print::{FmtPrinter, Printer};
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_index::vec::{IndexVec, Idx};
use smallvec::SmallVec; use smallvec::SmallVec;
use crate::mir::interpret; use crate::mir::interpret;

View File

@ -8,7 +8,7 @@ use crate::infer::canonical::Canonical;
use crate::mir::interpret::ConstValue; use crate::mir::interpret::ConstValue;
use crate::middle::region; use crate::middle::region;
use polonius_engine::Atom; use polonius_engine::Atom;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_macros::HashStable; use rustc_macros::HashStable;
use crate::ty::subst::{InternalSubsts, Subst, SubstsRef, GenericArg, GenericArgKind}; use crate::ty::subst::{InternalSubsts, Subst, SubstsRef, GenericArg, GenericArgKind};
use crate::ty::{self, AdtDef, Discr, DefIdTree, TypeFlags, Ty, TyCtxt, TypeFoldable}; use crate::ty::{self, AdtDef, Discr, DefIdTree, TypeFlags, Ty, TyCtxt, TypeFoldable};
@ -1165,7 +1165,7 @@ impl<'tcx> ParamConst {
} }
} }
newtype_index! { rustc_index::newtype_index! {
/// A [De Bruijn index][dbi] is a standard means of representing /// A [De Bruijn index][dbi] is a standard means of representing
/// regions (and perhaps later types) in a higher-ranked setting. In /// regions (and perhaps later types) in a higher-ranked setting. In
/// particular, imagine a type like this: /// particular, imagine a type like this:
@ -1349,7 +1349,7 @@ pub struct FloatVid {
pub index: u32, pub index: u32,
} }
newtype_index! { rustc_index::newtype_index! {
pub struct RegionVid { pub struct RegionVid {
DEBUG_FORMAT = custom, DEBUG_FORMAT = custom,
} }
@ -1376,7 +1376,7 @@ pub enum InferTy {
FreshFloatTy(u32), FreshFloatTy(u32),
} }
newtype_index! { rustc_index::newtype_index! {
pub struct BoundVar { .. } pub struct BoundVar { .. }
} }

View File

@ -12,7 +12,6 @@ test = false
[dependencies] [dependencies]
rustc_llvm = { path = "../librustc_llvm" } rustc_llvm = { path = "../librustc_llvm" }
rustc_index = { path = "../librustc_index" }
[features] [features]
# This is used to convince Cargo to separately cache builds of `rustc_codegen_llvm` # This is used to convince Cargo to separately cache builds of `rustc_codegen_llvm`

View File

@ -12,7 +12,7 @@ use libc::c_uint;
use syntax_pos::Pos; use syntax_pos::Pos;
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use syntax_pos::BytePos; use syntax_pos::BytePos;

View File

@ -26,7 +26,7 @@ use rustc::mir;
use rustc::session::config::{self, DebugInfo}; use rustc::session::config::{self, DebugInfo};
use rustc::util::nodemap::{DefIdMap, FxHashMap, FxHashSet}; use rustc::util::nodemap::{DefIdMap, FxHashMap, FxHashSet};
use rustc_data_structures::small_c_str::SmallCStr; use rustc_data_structures::small_c_str::SmallCStr;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_codegen_ssa::debuginfo::{FunctionDebugContext, MirDebugScope, VariableAccess, use rustc_codegen_ssa::debuginfo::{FunctionDebugContext, MirDebugScope, VariableAccess,
VariableKind, FunctionDebugContextData, type_names}; VariableKind, FunctionDebugContextData, type_names};

View File

@ -31,6 +31,7 @@ extern crate libc;
#[macro_use] extern crate rustc; #[macro_use] extern crate rustc;
extern crate rustc_target; extern crate rustc_target;
#[macro_use] extern crate rustc_data_structures; #[macro_use] extern crate rustc_data_structures;
extern crate rustc_index;
extern crate rustc_incremental; extern crate rustc_incremental;
extern crate rustc_codegen_utils; extern crate rustc_codegen_utils;
extern crate rustc_codegen_ssa; extern crate rustc_codegen_ssa;

View File

@ -13,7 +13,7 @@ use rustc::ty::{TyCtxt, SymbolName};
use rustc::ty::query::Providers; use rustc::ty::query::Providers;
use rustc::ty::subst::SubstsRef; use rustc::ty::subst::SubstsRef;
use rustc::util::nodemap::{FxHashMap, DefIdMap}; use rustc::util::nodemap::{FxHashMap, DefIdMap};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use syntax::ext::allocator::ALLOCATOR_METHODS; use syntax::ext::allocator::ALLOCATOR_METHODS;
pub type ExportedSymbols = FxHashMap< pub type ExportedSymbols = FxHashMap<

View File

@ -29,7 +29,7 @@ use rustc::util::common::{time, print_time_passes_entry, set_time_depth, time_de
use rustc::session::config::{self, EntryFnType, Lto}; use rustc::session::config::{self, EntryFnType, Lto};
use rustc::session::Session; use rustc::session::Session;
use rustc::util::nodemap::FxHashMap; use rustc::util::nodemap::FxHashMap;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_codegen_utils::{symbol_names_test, check_for_rustc_errors_attr}; use rustc_codegen_utils::{symbol_names_test, check_for_rustc_errors_attr};
use rustc::ty::layout::{FAT_PTR_ADDR, FAT_PTR_EXTRA}; use rustc::ty::layout::{FAT_PTR_ADDR, FAT_PTR_EXTRA};
use crate::mir::place::PlaceRef; use crate::mir::place::PlaceRef;

View File

@ -3,7 +3,7 @@
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::graph::dominators::Dominators; use rustc_data_structures::graph::dominators::Dominators;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use rustc::mir::{self, Location, TerminatorKind}; use rustc::mir::{self, Location, TerminatorKind};
use rustc::mir::visit::{Visitor, PlaceContext, MutatingUseContext, NonMutatingUseContext}; use rustc::mir::visit::{Visitor, PlaceContext, MutatingUseContext, NonMutatingUseContext};
use rustc::mir::traversal; use rustc::mir::traversal;

View File

@ -1,4 +1,4 @@
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc::middle::lang_items; use rustc::middle::lang_items;
use rustc::ty::{self, Ty, TypeFoldable, Instance}; use rustc::ty::{self, Ty, TypeFoldable, Instance};
use rustc::ty::layout::{self, LayoutOf, HasTyCtxt, FnTypeExt}; use rustc::ty::layout::{self, LayoutOf, HasTyCtxt, FnTypeExt};

View File

@ -1,6 +1,6 @@
use rustc::mir::interpret::ErrorHandled; use rustc::mir::interpret::ErrorHandled;
use rustc::mir; use rustc::mir;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc::ty::{self, Ty}; use rustc::ty::{self, Ty};
use rustc::ty::layout::{self, HasTyCtxt}; use rustc::ty::layout::{self, HasTyCtxt};
use syntax::source_map::Span; use syntax::source_map::Span;

View File

@ -14,7 +14,7 @@ use syntax::symbol::kw;
use std::iter; use std::iter;
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use self::analyze::CleanupKind; use self::analyze::CleanupKind;
use self::place::PlaceRef; use self::place::PlaceRef;

View File

@ -3,7 +3,7 @@ use crate::debuginfo::{FunctionDebugContext, MirDebugScope, VariableAccess, Vari
use rustc::hir::def_id::CrateNum; use rustc::hir::def_id::CrateNum;
use rustc::mir; use rustc::mir;
use rustc::ty::{self, Ty, Instance}; use rustc::ty::{self, Ty, Instance};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use syntax::ast::Name; use syntax::ast::Name;
use syntax_pos::{SourceFile, Span}; use syntax_pos::{SourceFile, Span};

View File

@ -4,7 +4,7 @@
//! Rice Computer Science TS-06-33870 //! Rice Computer Science TS-06-33870
//! <https://www.cs.rice.edu/~keith/EMBED/dom.pdf> //! <https://www.cs.rice.edu/~keith/EMBED/dom.pdf>
use super::super::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use super::iterate::reverse_post_order; use super::iterate::reverse_post_order;
use super::ControlFlowGraph; use super::ControlFlowGraph;

View File

@ -1,4 +1,4 @@
use super::super::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use super::{DirectedGraph, WithNumNodes, WithSuccessors, WithStartNode}; use super::{DirectedGraph, WithNumNodes, WithSuccessors, WithStartNode};
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;

View File

@ -1,4 +1,4 @@
use super::indexed_vec::Idx; use rustc_index::vec::Idx;
pub mod dominators; pub mod dominators;
pub mod implementation; pub mod implementation;

View File

@ -6,7 +6,7 @@
use crate::fx::FxHashSet; use crate::fx::FxHashSet;
use crate::graph::{DirectedGraph, WithNumNodes, WithNumEdges, WithSuccessors, GraphSuccessors}; use crate::graph::{DirectedGraph, WithNumNodes, WithNumEdges, WithSuccessors, GraphSuccessors};
use crate::graph::vec_graph::VecGraph; use crate::graph::vec_graph::VecGraph;
use crate::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use std::ops::Range; use std::ops::Range;
#[cfg(test)] #[cfg(test)]

View File

@ -1,4 +1,4 @@
use crate::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use crate::graph::{DirectedGraph, WithNumNodes, WithNumEdges, WithSuccessors, GraphSuccessors}; use crate::graph::{DirectedGraph, WithNumNodes, WithNumEdges, WithSuccessors, GraphSuccessors};
#[cfg(test)] #[cfg(test)]

View File

@ -37,7 +37,6 @@ extern crate libc;
extern crate cfg_if; extern crate cfg_if;
pub use rustc_serialize::hex::ToHex; pub use rustc_serialize::hex::ToHex;
pub use rustc_index::{indexed_vec, newtype_index};
#[inline(never)] #[inline(never)]
#[cold] #[cold]

View File

@ -138,7 +138,7 @@ pub struct ObligationForest<O: ForestObligation> {
/// call to `compress`. /// call to `compress`.
/// ///
/// `usize` indices are used here and throughout this module, rather than /// `usize` indices are used here and throughout this module, rather than
/// `newtype_index!` indices, because this code is hot enough that the /// `rustc_index::newtype_index!` indices, because this code is hot enough that the
/// `u32`-to-`usize` conversions that would be required are significant, /// `u32`-to-`usize` conversions that would be required are significant,
/// and space considerations are not important. /// and space considerations are not important.
nodes: Vec<Node<O>>, nodes: Vec<Node<O>>,

View File

@ -2,7 +2,7 @@ use std::hash::{Hash, Hasher, BuildHasher};
use std::mem; use std::mem;
use smallvec::SmallVec; use smallvec::SmallVec;
use crate::sip128::SipHasher128; use crate::sip128::SipHasher128;
use crate::indexed_vec; use rustc_index::vec;
use rustc_index::bit_set; use rustc_index::bit_set;
/// When hashing something that ends up affecting properties like symbol names, /// When hashing something that ends up affecting properties like symbol names,
@ -429,7 +429,7 @@ impl<T, CTX> HashStable<CTX> for ::std::mem::Discriminant<T> {
} }
} }
impl<I: indexed_vec::Idx, T, CTX> HashStable<CTX> for indexed_vec::IndexVec<I, T> impl<I: vec::Idx, T, CTX> HashStable<CTX> for vec::IndexVec<I, T>
where T: HashStable<CTX>, where T: HashStable<CTX>,
{ {
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) { fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
@ -441,14 +441,14 @@ impl<I: indexed_vec::Idx, T, CTX> HashStable<CTX> for indexed_vec::IndexVec<I, T
} }
impl<I: indexed_vec::Idx, CTX> HashStable<CTX> for bit_set::BitSet<I> impl<I: vec::Idx, CTX> HashStable<CTX> for bit_set::BitSet<I>
{ {
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) { fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {
self.words().hash_stable(ctx, hasher); self.words().hash_stable(ctx, hasher);
} }
} }
impl<R: indexed_vec::Idx, C: indexed_vec::Idx, CTX> HashStable<CTX> impl<R: vec::Idx, C: vec::Idx, CTX> HashStable<CTX>
for bit_set::BitMatrix<R, C> for bit_set::BitMatrix<R, C>
{ {
fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) { fn hash_stable(&self, ctx: &mut CTX, hasher: &mut StableHasher) {

View File

@ -1,4 +1,4 @@
use crate::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
pub fn iter<Ls>( pub fn iter<Ls>(
first: Option<Ls::LinkIndex>, first: Option<Ls::LinkIndex>,

View File

@ -1,5 +1,5 @@
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use crate::indexed_vec::Idx; use rustc_index::vec::Idx;
use std::collections::VecDeque; use std::collections::VecDeque;
/// A work queue is a handy data structure for tracking work left to /// A work queue is a handy data structure for tracking work left to

View File

@ -1,4 +1,4 @@
use crate::indexed_vec::{Idx, IndexVec}; use crate::vec::{Idx, IndexVec};
use smallvec::SmallVec; use smallvec::SmallVec;
use std::fmt; use std::fmt;
use std::iter; use std::iter;

View File

@ -3,5 +3,5 @@
#![feature(test)] #![feature(test)]
#![feature(fn_traits)] #![feature(fn_traits)]
pub mod indexed_vec; pub mod vec;
pub mod bit_set; pub mod bit_set;

View File

@ -15,3 +15,4 @@ rustc_target = { path = "../librustc_target" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../libsyntax_pos" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_index = { path = "../librustc_index" }

View File

@ -7,7 +7,7 @@ use rustc::ty::subst::SubstsRef;
use rustc::ty::{self, AdtKind, ParamEnv, Ty, TyCtxt}; use rustc::ty::{self, AdtKind, ParamEnv, Ty, TyCtxt};
use rustc::ty::layout::{self, IntegerExt, LayoutOf, VariantIdx, SizeSkeleton}; use rustc::ty::layout::{self, IntegerExt, LayoutOf, VariantIdx, SizeSkeleton};
use rustc::{lint, util}; use rustc::{lint, util};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use util::nodemap::FxHashSet; use util::nodemap::FxHashSet;
use lint::{LateContext, LintContext, LintArray}; use lint::{LateContext, LintContext, LintArray};
use lint::{LintPass, LateLintPass}; use lint::{LintPass, LateLintPass};

View File

@ -6,7 +6,7 @@ use rustc::hir::def_id::{CrateNum, DefIndex};
use rustc::hir::map::definitions::DefPathTable; use rustc::hir::map::definitions::DefPathTable;
use rustc::middle::cstore::{DepKind, ExternCrate, MetadataLoader}; use rustc::middle::cstore::{DepKind, ExternCrate, MetadataLoader};
use rustc::mir::interpret::AllocDecodingState; use rustc::mir::interpret::AllocDecodingState;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc::util::nodemap::{FxHashMap, NodeMap}; use rustc::util::nodemap::{FxHashMap, NodeMap};
use rustc_data_structures::sync::{Lrc, RwLock, Lock}; use rustc_data_structures::sync::{Lrc, RwLock, Lock};

View File

@ -3,7 +3,7 @@
use crate::cstore::{self, CrateMetadata, MetadataBlob, NativeLibrary, ForeignModule}; use crate::cstore::{self, CrateMetadata, MetadataBlob, NativeLibrary, ForeignModule};
use crate::schema::*; use crate::schema::*;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::sync::{Lrc, ReadGuard}; use rustc_data_structures::sync::{Lrc, ReadGuard};
use rustc::hir::map::{DefKey, DefPath, DefPathData, DefPathHash}; use rustc::hir::map::{DefKey, DefPath, DefPathData, DefPathHash};
use rustc::hir; use rustc::hir;

View File

@ -8,7 +8,7 @@ use rustc::hir::def_id::{CrateNum, CRATE_DEF_INDEX, DefIndex, DefId, LocalDefId,
use rustc::hir::GenericParamKind; use rustc::hir::GenericParamKind;
use rustc::hir::map::definitions::DefPathTable; use rustc::hir::map::definitions::DefPathTable;
use rustc_data_structures::fingerprint::Fingerprint; use rustc_data_structures::fingerprint::Fingerprint;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc::middle::dependency_format::Linkage; use rustc::middle::dependency_format::Linkage;
use rustc::middle::exported_symbols::{ExportedSymbol, SymbolExportLevel, use rustc::middle::exported_symbols::{ExportedSymbol, SymbolExportLevel,
metadata_symbol_name}; metadata_symbol_name};

View File

@ -11,7 +11,7 @@ use rustc::session::CrateDisambiguator;
use rustc::session::config::SymbolManglingVersion; use rustc::session::config::SymbolManglingVersion;
use rustc::ty::{self, Ty, ReprOptions}; use rustc::ty::{self, Ty, ReprOptions};
use rustc_target::spec::{PanicStrategy, TargetTriple}; use rustc_target::spec::{PanicStrategy, TargetTriple};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::svh::Svh; use rustc_data_structures::svh::Svh;
use syntax::{ast, attr}; use syntax::{ast, attr};

View File

@ -8,7 +8,7 @@ use rustc::mir::visit::{PlaceContext, Visitor, NonUseContext, MutatingUseContext
use rustc::mir::{self, Location, Body, Local}; use rustc::mir::{self, Location, Body, Local};
use rustc::ty::{RegionVid, TyCtxt}; use rustc::ty::{RegionVid, TyCtxt};
use rustc::util::nodemap::{FxHashMap, FxHashSet}; use rustc::util::nodemap::{FxHashMap, FxHashSet};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use std::fmt; use std::fmt;
use std::ops::Index; use std::ops::Index;

View File

@ -7,7 +7,7 @@ use rustc::mir::{
}; };
use rustc::ty::{self, Ty}; use rustc::ty::{self, Ty};
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_errors::{Applicability, DiagnosticBuilder}; use rustc_errors::{Applicability, DiagnosticBuilder};
use syntax_pos::Span; use syntax_pos::Span;
use syntax::source_map::DesugaringKind; use syntax::source_map::DesugaringKind;

View File

@ -1,5 +1,5 @@
use rustc::mir::{BasicBlock, Location, Body}; use rustc::mir::{BasicBlock, Location, Body};
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
/// Maps between a MIR Location, which identifies a particular /// Maps between a MIR Location, which identifies a particular
/// statement within a basic block, to a "rich location", which /// statement within a basic block, to a "rich location", which
@ -17,7 +17,7 @@ crate struct LocationTable {
statements_before_block: IndexVec<BasicBlock, usize>, statements_before_block: IndexVec<BasicBlock, usize>,
} }
newtype_index! { rustc_index::newtype_index! {
pub struct LocationIndex { pub struct LocationIndex {
DEBUG_FORMAT = "LocationIndex({})" DEBUG_FORMAT = "LocationIndex({})"
} }

View File

@ -21,7 +21,7 @@ use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder};
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::graph::dominators::Dominators; use rustc_data_structures::graph::dominators::Dominators;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use smallvec::SmallVec; use smallvec::SmallVec;
use std::collections::BTreeMap; use std::collections::BTreeMap;

View File

@ -5,7 +5,7 @@ use rustc::mir::{
Mutability, Place, PlaceRef, PlaceBase, ProjectionElem, Static, StaticKind Mutability, Place, PlaceRef, PlaceBase, ProjectionElem, Static, StaticKind
}; };
use rustc::ty::{self, Ty, TyCtxt}; use rustc::ty::{self, Ty, TyCtxt};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use syntax_pos::Span; use syntax_pos::Span;
use syntax_pos::symbol::kw; use syntax_pos::symbol::kw;

View File

@ -4,7 +4,7 @@ use crate::borrow_check::nll::constraints::{OutlivesConstraintSet, OutlivesConst
use rustc::mir::ConstraintCategory; use rustc::mir::ConstraintCategory;
use rustc::ty::RegionVid; use rustc::ty::RegionVid;
use rustc_data_structures::graph; use rustc_data_structures::graph;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use syntax_pos::DUMMY_SP; use syntax_pos::DUMMY_SP;
/// The construct graph organizes the constraints by their end-points. /// The construct graph organizes the constraints by their end-points.

View File

@ -2,7 +2,7 @@ use crate::borrow_check::nll::type_check::Locations;
use rustc::mir::ConstraintCategory; use rustc::mir::ConstraintCategory;
use rustc::ty::RegionVid; use rustc::ty::RegionVid;
use rustc_data_structures::graph::scc::Sccs; use rustc_data_structures::graph::scc::Sccs;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use std::fmt; use std::fmt;
use std::ops::Index; use std::ops::Index;
@ -100,13 +100,13 @@ impl fmt::Debug for OutlivesConstraint {
} }
} }
newtype_index! { rustc_index::newtype_index! {
pub struct OutlivesConstraintIndex { pub struct OutlivesConstraintIndex {
DEBUG_FORMAT = "OutlivesConstraintIndex({})" DEBUG_FORMAT = "OutlivesConstraintIndex({})"
} }
} }
newtype_index! { rustc_index::newtype_index! {
pub struct ConstraintSccIndex { pub struct ConstraintSccIndex {
DEBUG_FORMAT = "ConstraintSccIndex({})" DEBUG_FORMAT = "ConstraintSccIndex({})"
} }

View File

@ -4,7 +4,7 @@ use polonius_engine::AllFacts as PoloniusAllFacts;
use polonius_engine::Atom; use polonius_engine::Atom;
use rustc::mir::Local; use rustc::mir::Local;
use rustc::ty::{RegionVid, TyCtxt}; use rustc::ty::{RegionVid, TyCtxt};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use std::error::Error; use std::error::Error;
use std::fmt::Debug; use std::fmt::Debug;
use std::fs::{self, File}; use std::fs::{self, File};

View File

@ -2,7 +2,7 @@ use crate::rustc::ty::{self, Ty};
use rustc::hir::def_id::DefId; use rustc::hir::def_id::DefId;
use rustc::infer::region_constraints::MemberConstraint; use rustc::infer::region_constraints::MemberConstraint;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use std::hash::Hash; use std::hash::Hash;
use std::ops::Index; use std::ops::Index;
use syntax_pos::Span; use syntax_pos::Span;
@ -51,7 +51,7 @@ crate struct NllMemberConstraint<'tcx> {
end_index: usize, end_index: usize,
} }
newtype_index! { rustc_index::newtype_index! {
crate struct NllMemberConstraintIndex { crate struct NllMemberConstraintIndex {
DEBUG_FORMAT = "MemberConstraintIndex({})" DEBUG_FORMAT = "MemberConstraintIndex({})"
} }

View File

@ -14,7 +14,7 @@ use rustc::infer::InferCtxt;
use rustc::mir::{ClosureOutlivesSubject, ClosureRegionRequirements, use rustc::mir::{ClosureOutlivesSubject, ClosureRegionRequirements,
Local, Location, Body, LocalKind, BasicBlock, Promoted}; Local, Location, Body, LocalKind, BasicBlock, Promoted};
use rustc::ty::{self, RegionKind, RegionVid}; use rustc::ty::{self, RegionKind, RegionVid};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_errors::Diagnostic; use rustc_errors::Diagnostic;
use std::fmt::Debug; use std::fmt::Debug;
use std::env; use std::env;

View File

@ -12,7 +12,7 @@ use rustc::infer::InferCtxt;
use rustc::infer::NLLRegionVariableOrigin; use rustc::infer::NLLRegionVariableOrigin;
use rustc::mir::{ConstraintCategory, Location, Body}; use rustc::mir::{ConstraintCategory, Location, Body};
use rustc::ty::{self, RegionVid}; use rustc::ty::{self, RegionVid};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_errors::DiagnosticBuilder; use rustc_errors::DiagnosticBuilder;
use std::collections::VecDeque; use std::collections::VecDeque;
use syntax::errors::Applicability; use syntax::errors::Applicability;

View File

@ -3,7 +3,7 @@ use crate::borrow_check::nll::ToRegionVid;
use crate::borrow_check::Upvar; use crate::borrow_check::Upvar;
use rustc::mir::{Local, Body}; use rustc::mir::{Local, Body};
use rustc::ty::{RegionVid, TyCtxt}; use rustc::ty::{RegionVid, TyCtxt};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use syntax::source_map::Span; use syntax::source_map::Span;
use syntax_pos::symbol::Symbol; use syntax_pos::symbol::Symbol;

View File

@ -32,7 +32,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::graph::WithSuccessors; use rustc_data_structures::graph::WithSuccessors;
use rustc_data_structures::graph::scc::Sccs; use rustc_data_structures::graph::scc::Sccs;
use rustc_data_structures::graph::vec_graph::VecGraph; use rustc_data_structures::graph::vec_graph::VecGraph;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_errors::{Diagnostic, DiagnosticBuilder}; use rustc_errors::{Diagnostic, DiagnosticBuilder};
use syntax_pos::Span; use syntax_pos::Span;

View File

@ -2,8 +2,8 @@ use rustc::mir::{BasicBlock, Location, Body};
use rustc::ty::{self, RegionVid}; use rustc::ty::{self, RegionVid};
use rustc_index::bit_set::{HybridBitSet, SparseBitMatrix}; use rustc_index::bit_set::{HybridBitSet, SparseBitMatrix};
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use std::fmt::Debug; use std::fmt::Debug;
use std::rc::Rc; use std::rc::Rc;
@ -116,13 +116,13 @@ impl RegionValueElements {
} }
} }
newtype_index! { rustc_index::newtype_index! {
/// A single integer representing a `Location` in the MIR control-flow /// A single integer representing a `Location` in the MIR control-flow
/// graph. Constructed efficiently from `RegionValueElements`. /// graph. Constructed efficiently from `RegionValueElements`.
pub struct PointIndex { DEBUG_FORMAT = "PointIndex({})" } pub struct PointIndex { DEBUG_FORMAT = "PointIndex({})" }
} }
newtype_index! { rustc_index::newtype_index! {
/// A single integer representing a `ty::Placeholder`. /// A single integer representing a `ty::Placeholder`.
pub struct PlaceholderIndex { DEBUG_FORMAT = "PlaceholderIndex({})" } pub struct PlaceholderIndex { DEBUG_FORMAT = "PlaceholderIndex({})" }
} }

View File

@ -3,7 +3,7 @@ use rustc::ty::{self, ClosureSubsts, GeneratorSubsts, Ty, TypeFoldable};
use rustc::mir::{Location, Body, Promoted}; use rustc::mir::{Location, Body, Promoted};
use rustc::mir::visit::{MutVisitor, TyContext}; use rustc::mir::visit::{MutVisitor, TyContext};
use rustc::infer::{InferCtxt, NLLRegionVariableOrigin}; use rustc::infer::{InferCtxt, NLLRegionVariableOrigin};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
/// Replaces all free regions appearing in the MIR with fresh /// Replaces all free regions appearing in the MIR with fresh
/// inference variables, returning the number of variables created. /// inference variables, returning the number of variables created.

View File

@ -12,7 +12,7 @@ use rustc::infer::LateBoundRegionConversionTime;
use rustc::mir::*; use rustc::mir::*;
use rustc::ty::Ty; use rustc::ty::Ty;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use syntax_pos::Span; use syntax_pos::Span;
use super::{Locations, TypeChecker}; use super::{Locations, TypeChecker};

View File

@ -2,7 +2,7 @@ use crate::borrow_check::nll::region_infer::values::{PointIndex, RegionValueElem
use crate::util::liveness::{categorize, DefUse}; use crate::util::liveness::{categorize, DefUse};
use rustc::mir::visit::{PlaceContext, Visitor}; use rustc::mir::visit::{PlaceContext, Visitor};
use rustc::mir::{Body, Local, Location}; use rustc::mir::{Body, Local, Location};
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use rustc_data_structures::vec_linked_list as vll; use rustc_data_structures::vec_linked_list as vll;
/// A map that cross references each local with the locations where it /// A map that cross references each local with the locations where it
@ -44,7 +44,7 @@ struct Appearance {
next: Option<AppearanceIndex>, next: Option<AppearanceIndex>,
} }
newtype_index! { rustc_index::newtype_index! {
pub struct AppearanceIndex { .. } pub struct AppearanceIndex { .. }
} }

View File

@ -43,7 +43,7 @@ use rustc::ty::{
UserTypeAnnotationIndex, UserTypeAnnotationIndex,
}; };
use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_index::vec::{IndexVec, Idx};
use rustc::ty::layout::VariantIdx; use rustc::ty::layout::VariantIdx;
use std::rc::Rc; use std::rc::Rc;
use std::{fmt, iter, mem}; use std::{fmt, iter, mem};

View File

@ -21,7 +21,7 @@ use rustc::ty::fold::TypeFoldable;
use rustc::ty::subst::{InternalSubsts, SubstsRef, Subst}; use rustc::ty::subst::{InternalSubsts, SubstsRef, Subst};
use rustc::ty::{self, ClosureSubsts, GeneratorSubsts, RegionVid, Ty, TyCtxt}; use rustc::ty::{self, ClosureSubsts, GeneratorSubsts, RegionVid, Ty, TyCtxt};
use rustc::util::nodemap::FxHashMap; use rustc::util::nodemap::FxHashMap;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use rustc_errors::DiagnosticBuilder; use rustc_errors::DiagnosticBuilder;
use std::iter; use std::iter;

View File

@ -8,7 +8,7 @@ use rustc::mir::interpret::{PanicInfo::BoundsCheck};
use rustc::mir::*; use rustc::mir::*;
use rustc::ty::{CanonicalUserTypeAnnotation, Variance}; use rustc::ty::{CanonicalUserTypeAnnotation, Variance};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
impl<'a, 'tcx> Builder<'a, 'tcx> { impl<'a, 'tcx> Builder<'a, 'tcx> {
/// Compile `expr`, yielding a place that we can move from etc. /// Compile `expr`, yielding a place that we can move from etc.

View File

@ -1,7 +1,7 @@
//! See docs in `build/expr/mod.rs`. //! See docs in `build/expr/mod.rs`.
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use crate::build::expr::category::{Category, RvalueFunc}; use crate::build::expr::category::{Category, RvalueFunc};
use crate::build::{BlockAnd, BlockAndExtension, Builder}; use crate::build::{BlockAnd, BlockAndExtension, Builder};

View File

@ -14,7 +14,7 @@ use rustc::ty::{self, Ty, TyCtxt};
use rustc::ty::subst::Subst; use rustc::ty::subst::Subst;
use rustc::util::nodemap::HirIdMap; use rustc::util::nodemap::HirIdMap;
use rustc_target::spec::PanicStrategy; use rustc_target::spec::PanicStrategy;
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_index::vec::{IndexVec, Idx};
use std::u32; use std::u32;
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;
use syntax::attr::{self, UnwindAttr}; use syntax::attr::{self, UnwindAttr};
@ -455,7 +455,7 @@ struct CFG<'tcx> {
basic_blocks: IndexVec<BasicBlock, BasicBlockData<'tcx>>, basic_blocks: IndexVec<BasicBlock, BasicBlockData<'tcx>>,
} }
newtype_index! { rustc_index::newtype_index! {
pub struct ScopeId { .. } pub struct ScopeId { .. }
} }

View File

@ -21,7 +21,7 @@ use std::ops;
use rustc::mir::{self, traversal, BasicBlock, Location}; use rustc::mir::{self, traversal, BasicBlock, Location};
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use rustc_data_structures::work_queue::WorkQueue; use rustc_data_structures::work_queue::WorkQueue;
use crate::dataflow::BottomValue; use crate::dataflow::BottomValue;

View File

@ -7,7 +7,7 @@ use rustc::ty::RegionVid;
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use crate::dataflow::{BitDenotation, BottomValue, GenKillSet}; use crate::dataflow::{BitDenotation, BottomValue, GenKillSet};
use crate::borrow_check::nll::region_infer::RegionInferenceContext; use crate::borrow_check::nll::region_infer::RegionInferenceContext;
@ -16,7 +16,7 @@ use crate::borrow_check::places_conflict;
use std::rc::Rc; use std::rc::Rc;
newtype_index! { rustc_index::newtype_index! {
pub struct BorrowIndex { pub struct BorrowIndex {
DEBUG_FORMAT = "bw{}" DEBUG_FORMAT = "bw{}"
} }

View File

@ -1,7 +1,7 @@
use rustc::mir::visit::Visitor; use rustc::mir::visit::Visitor;
use rustc::mir::{self, Local, Location}; use rustc::mir::{self, Local, Location};
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use syntax_pos::DUMMY_SP; use syntax_pos::DUMMY_SP;
use crate::dataflow::{self, GenKillSet}; use crate::dataflow::{self, GenKillSet};

View File

@ -5,7 +5,7 @@
use rustc::ty::TyCtxt; use rustc::ty::TyCtxt;
use rustc::mir::{self, Body, Location}; use rustc::mir::{self, Body, Location};
use rustc_index::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use super::MoveDataParamEnv; use super::MoveDataParamEnv;

View File

@ -2,7 +2,7 @@ use syntax::ast::{self, MetaItem};
use syntax::symbol::{Symbol, sym}; use syntax::symbol::{Symbol, sym};
use rustc_index::bit_set::{BitSet, HybridBitSet}; use rustc_index::bit_set::{BitSet, HybridBitSet};
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_data_structures::work_queue::WorkQueue; use rustc_data_structures::work_queue::WorkQueue;
use rustc::hir::def_id::DefId; use rustc::hir::def_id::DefId;

View File

@ -1,7 +1,7 @@
use rustc::mir::tcx::RvalueInitializationState; use rustc::mir::tcx::RvalueInitializationState;
use rustc::mir::*; use rustc::mir::*;
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use smallvec::{smallvec, SmallVec}; use smallvec::{smallvec, SmallVec};
use std::collections::hash_map::Entry; use std::collections::hash_map::Entry;

View File

@ -2,7 +2,7 @@ use core::slice::Iter;
use rustc::mir::*; use rustc::mir::*;
use rustc::ty::{Ty, TyCtxt}; use rustc::ty::{Ty, TyCtxt};
use rustc::util::nodemap::FxHashMap; use rustc::util::nodemap::FxHashMap;
use rustc_data_structures::indexed_vec::{Enumerated, Idx, IndexVec}; use rustc_index::vec::{Enumerated, Idx, IndexVec};
use smallvec::SmallVec; use smallvec::SmallVec;
use syntax_pos::Span; use syntax_pos::Span;
@ -13,19 +13,19 @@ use self::abs_domain::{AbstractElem, Lift};
mod abs_domain; mod abs_domain;
newtype_index! { rustc_index::newtype_index! {
pub struct MovePathIndex { pub struct MovePathIndex {
DEBUG_FORMAT = "mp{}" DEBUG_FORMAT = "mp{}"
} }
} }
newtype_index! { rustc_index::newtype_index! {
pub struct MoveOutIndex { pub struct MoveOutIndex {
DEBUG_FORMAT = "mo{}" DEBUG_FORMAT = "mo{}"
} }
} }
newtype_index! { rustc_index::newtype_index! {
pub struct InitIndex { pub struct InitIndex {
DEBUG_FORMAT = "in{}" DEBUG_FORMAT = "in{}"
} }

View File

@ -5,7 +5,7 @@ use rustc::middle::region;
use rustc::hir; use rustc::hir;
use rustc::ty; use rustc::ty;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
impl<'tcx> Mirror<'tcx> for &'tcx hir::Block { impl<'tcx> Mirror<'tcx> for &'tcx hir::Block {
type Output = Block<'tcx>; type Output = Block<'tcx>;

View File

@ -3,7 +3,7 @@ use crate::hair::cx::Cx;
use crate::hair::cx::block; use crate::hair::cx::block;
use crate::hair::cx::to_ref::ToRef; use crate::hair::cx::to_ref::ToRef;
use crate::hair::util::UserAnnotatedTyHelpers; use crate::hair::util::UserAnnotatedTyHelpers;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc::hir::def::{CtorOf, Res, DefKind, CtorKind}; use rustc::hir::def::{CtorOf, Res, DefKind, CtorKind};
use rustc::mir::interpret::{GlobalId, ErrorHandled, ConstValue}; use rustc::mir::interpret::{GlobalId, ErrorHandled, ConstValue};
use rustc::ty::{self, AdtKind, Ty}; use rustc::ty::{self, AdtKind, Ty};

View File

@ -5,7 +5,7 @@
use crate::hair::*; use crate::hair::*;
use crate::hair::util::UserAnnotatedTyHelpers; use crate::hair::util::UserAnnotatedTyHelpers;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc::hir::def_id::DefId; use rustc::hir::def_id::DefId;
use rustc::hir::Node; use rustc::hir::Node;
use rustc::middle::region; use rustc::middle::region;

View File

@ -161,7 +161,7 @@ use self::Usefulness::*;
use self::WitnessPreference::*; use self::WitnessPreference::*;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use super::{FieldPat, Pat, PatKind, PatRange}; use super::{FieldPat, Pat, PatKind, PatRange};
use super::{PatternFoldable, PatternFolder, compare_const_vals}; use super::{PatternFoldable, PatternFolder, compare_const_vals};

View File

@ -24,7 +24,7 @@ use rustc::hir::def::{CtorOf, Res, DefKind, CtorKind};
use rustc::hir::pat_util::EnumerateAndAdjustIterator; use rustc::hir::pat_util::EnumerateAndAdjustIterator;
use rustc::hir::ptr::P; use rustc::hir::ptr::P;
use rustc_data_structures::indexed_vec::Idx; use rustc_index::vec::Idx;
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use std::cmp::Ordering; use std::cmp::Ordering;

View File

@ -12,7 +12,7 @@ use rustc::ty::layout::{
use rustc::ty::subst::SubstsRef; use rustc::ty::subst::SubstsRef;
use rustc::ty::{self, Ty, TyCtxt, TypeFoldable}; use rustc::ty::{self, Ty, TyCtxt, TypeFoldable};
use rustc::ty::query::TyCtxtAt; use rustc::ty::query::TyCtxtAt;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc::mir::interpret::{ use rustc::mir::interpret::{
GlobalId, Scalar, Pointer, FrameInfo, AllocId, GlobalId, Scalar, Pointer, FrameInfo, AllocId,
InterpResult, truncate, sign_extend, InterpResult, truncate, sign_extend,

View File

@ -17,7 +17,7 @@ use rustc::mir::interpret::{
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc::ty::layout::{Align, Size}; use rustc::ty::layout::{Align, Size};
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
use syntax::ast::Mutability; use syntax::ast::Mutability;
use syntax::source_map::Span; use syntax::source_map::Span;

View File

@ -6,7 +6,7 @@ use rustc::ty::layout::VariantIdx;
use rustc::ty::subst::{Subst, InternalSubsts}; use rustc::ty::subst::{Subst, InternalSubsts};
use rustc::ty::query::Providers; use rustc::ty::query::Providers;
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_index::vec::{IndexVec, Idx};
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;
use syntax_pos::{Span, sym}; use syntax_pos::{Span, sym};

View File

@ -1,6 +1,6 @@
use rustc::ty::TyCtxt; use rustc::ty::TyCtxt;
use rustc::mir::*; use rustc::mir::*;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_index::vec::{Idx, IndexVec};
use crate::transform::{MirPass, MirSource}; use crate::transform::{MirPass, MirSource};
#[derive(PartialEq)] #[derive(PartialEq)]

View File

@ -3,7 +3,7 @@
use rustc::mir::*; use rustc::mir::*;
use rustc::mir::interpret::ConstValue; use rustc::mir::interpret::ConstValue;
use rustc::ty::{self, Ty}; use rustc::ty::{self, Ty};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use syntax_pos::DUMMY_SP; use syntax_pos::DUMMY_SP;
use super::Item as ConstCx; use super::Item as ConstCx;

View File

@ -5,7 +5,7 @@
use rustc::mir::visit::Visitor; use rustc::mir::visit::Visitor;
use rustc::mir::{self, BasicBlock, Local, Location}; use rustc::mir::{self, BasicBlock, Local, Location};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use std::cell::RefCell; use std::cell::RefCell;
use std::marker::PhantomData; use std::marker::PhantomData;

View File

@ -5,7 +5,7 @@ use rustc::mir::visit::{PlaceContext, Visitor, MutatingUseContext, NonMutatingUs
use rustc::mir::*; use rustc::mir::*;
use rustc::ty::cast::CastTy; use rustc::ty::cast::CastTy;
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;
use syntax::symbol::sym; use syntax::symbol::sym;
use syntax_pos::Span; use syntax_pos::Span;

View File

@ -1,5 +1,5 @@
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc_data_structures::sync::Lrc; use rustc_data_structures::sync::Lrc;
use rustc::ty::query::Providers; use rustc::ty::query::Providers;

View File

@ -21,7 +21,7 @@ use syntax::ast::Mutability;
use syntax_pos::{Span, DUMMY_SP}; use syntax_pos::{Span, DUMMY_SP};
use rustc::ty::subst::InternalSubsts; use rustc::ty::subst::InternalSubsts;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_index::vec::IndexVec;
use rustc::ty::layout::{ use rustc::ty::layout::{
LayoutOf, TyLayout, LayoutError, HasTyCtxt, TargetDataLayout, HasDataLayout, LayoutOf, TyLayout, LayoutError, HasTyCtxt, TargetDataLayout, HasDataLayout,
}; };

Some files were not shown because too many files have changed in this diff Show More