remove bit_set re-export from rustc_data_structures

This commit is contained in:
csmoe 2019-09-26 05:30:10 +00:00
parent 17990637b3
commit d20183dbbf
48 changed files with 55 additions and 42 deletions

View file

@ -3082,6 +3082,7 @@ dependencies = [
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_fs_util", "rustc_fs_util",
"rustc_index",
"rustc_macros", "rustc_macros",
"rustc_target", "rustc_target",
"scoped-tls", "scoped-tls",
@ -3341,6 +3342,7 @@ 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",
] ]
@ -3362,6 +3364,7 @@ dependencies = [
"rustc_errors", "rustc_errors",
"rustc_fs_util", "rustc_fs_util",
"rustc_incremental", "rustc_incremental",
"rustc_index",
"rustc_target", "rustc_target",
"serialize", "serialize",
"syntax", "syntax",
@ -3561,6 +3564,7 @@ dependencies = [
"rustc", "rustc",
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_index",
"rustc_target", "rustc_target",
"serialize", "serialize",
"smallvec", "smallvec",
@ -3583,6 +3587,7 @@ dependencies = [
"rustc_apfloat", "rustc_apfloat",
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_index",
"rustc_lexer", "rustc_lexer",
"rustc_target", "rustc_target",
"serialize", "serialize",
@ -4246,6 +4251,7 @@ dependencies = [
"log", "log",
"rustc_data_structures", "rustc_data_structures",
"rustc_errors", "rustc_errors",
"rustc_index",
"rustc_lexer", "rustc_lexer",
"rustc_target", "rustc_target",
"scoped-tls", "scoped-tls",

View file

@ -25,6 +25,7 @@ rustc_apfloat = { path = "../librustc_apfloat" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
rustc_macros = { path = "../librustc_macros" } rustc_macros = { path = "../librustc_macros" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_index = { path = "../librustc_index" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }

View file

@ -45,7 +45,7 @@ macro_rules! arena_types {
[decode] specialization_graph: rustc::traits::specialization_graph::Graph, [decode] specialization_graph: rustc::traits::specialization_graph::Graph,
[] region_scope_tree: rustc::middle::region::ScopeTree, [] region_scope_tree: rustc::middle::region::ScopeTree,
[] item_local_set: rustc::util::nodemap::ItemLocalSet, [] item_local_set: rustc::util::nodemap::ItemLocalSet,
[decode] mir_const_qualif: rustc_data_structures::bit_set::BitSet<rustc::mir::Local>, [decode] mir_const_qualif: rustc_index::bit_set::BitSet<rustc::mir::Local>,
[] trait_impls_of: rustc::ty::trait_def::TraitImpls, [] trait_impls_of: rustc::ty::trait_def::TraitImpls,
[] dropck_outlives: [] dropck_outlives:
rustc::infer::canonical::Canonical<'tcx, rustc::infer::canonical::Canonical<'tcx,

View file

@ -20,7 +20,7 @@ use crate::ty::{
}; };
use polonius_engine::Atom; use polonius_engine::Atom;
use rustc_data_structures::bit_set::BitMatrix; 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};

View file

@ -1,4 +1,4 @@
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use super::*; use super::*;

View file

@ -40,7 +40,7 @@ use crate::ty::subst::{Subst, SubstsRef};
use crate::ty::{self, ToPolyTraitRef, ToPredicate, Ty, TyCtxt, TypeFoldable}; use crate::ty::{self, ToPolyTraitRef, ToPredicate, Ty, TyCtxt, TypeFoldable};
use crate::hir; use crate::hir;
use rustc_data_structures::bit_set::GrowableBitSet; use rustc_index::bit_set::GrowableBitSet;
use rustc_data_structures::sync::Lock; use rustc_data_structures::sync::Lock;
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;
use syntax::attr; use syntax::attr;

View file

@ -17,7 +17,7 @@ use crate::ich::StableHashingContext;
use crate::mir::{GeneratorLayout, GeneratorSavedLocal}; 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_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use rustc_data_structures::indexed_vec::{IndexVec, Idx};
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; use rustc_data_structures::stable_hasher::{HashStable, StableHasher};

View file

@ -38,11 +38,11 @@ use crate::ty::steal::Steal;
use crate::ty::util::NeedsDrop; use crate::ty::util::NeedsDrop;
use crate::ty::subst::SubstsRef; use crate::ty::subst::SubstsRef;
use crate::util::nodemap::{DefIdSet, DefIdMap, ItemLocalSet}; use crate::util::nodemap::{DefIdSet, DefIdMap, ItemLocalSet};
use crate::util::common::{ErrorReported}; use crate::util::common::ErrorReported;
use crate::util::profiling::ProfileCategory::*; use crate::util::profiling::ProfileCategory::*;
use rustc_data_structures::svh::Svh; use rustc_data_structures::svh::Svh;
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_data_structures::indexed_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;

View file

@ -12,6 +12,7 @@ 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

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

View file

@ -29,4 +29,5 @@ rustc_data_structures = { path = "../librustc_data_structures"}
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }
rustc_fs_util = { path = "../librustc_fs_util" } rustc_fs_util = { path = "../librustc_fs_util" }
rustc_incremental = { path = "../librustc_incremental" } rustc_incremental = { path = "../librustc_incremental" }
rustc_index = { path = "../librustc_index" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }

View file

@ -1,7 +1,7 @@
//! An analysis to determine which locals require allocas and //! An analysis to determine which locals require allocas and
//! which do not. //! which do not.
use rustc_data_structures::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_data_structures::indexed_vec::{Idx, IndexVec};
use rustc::mir::{self, Location, TerminatorKind}; use rustc::mir::{self, Location, TerminatorKind};

View file

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

View file

@ -20,7 +20,7 @@
//! the field `next_edge`). Each of those fields is an array that should //! the field `next_edge`). Each of those fields is an array that should
//! be indexed by the direction (see the type `Direction`). //! be indexed by the direction (see the type `Direction`).
use crate::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use crate::snapshot_vec::{SnapshotVec, SnapshotVecDelegate}; use crate::snapshot_vec::{SnapshotVec, SnapshotVecDelegate};
use std::fmt::Debug; use std::fmt::Debug;
use std::usize; use std::usize;

View file

@ -1,6 +1,6 @@
use super::super::indexed_vec::IndexVec; use super::super::indexed_vec::IndexVec;
use super::{DirectedGraph, WithNumNodes, WithSuccessors, WithStartNode}; use super::{DirectedGraph, WithNumNodes, WithSuccessors, WithStartNode};
use crate::bit_set::BitSet; use rustc_index::bit_set::BitSet;
#[cfg(test)] #[cfg(test)]
mod tests; mod tests;

View file

@ -37,7 +37,7 @@ 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::{bit_set, indexed_vec, newtype_index}; pub use rustc_index::{indexed_vec, newtype_index};
#[inline(never)] #[inline(never)]
#[cold] #[cold]

View file

@ -3,7 +3,7 @@ use std::mem;
use smallvec::SmallVec; use smallvec::SmallVec;
use crate::sip128::SipHasher128; use crate::sip128::SipHasher128;
use crate::indexed_vec; use crate::indexed_vec;
use crate::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,
/// we want these symbol names to be calculated independently of other factors /// we want these symbol names to be calculated independently of other factors

View file

@ -1,4 +1,4 @@
use crate::bit_set::BitMatrix; use rustc_index::bit_set::BitMatrix;
use crate::fx::FxHashMap; use crate::fx::FxHashMap;
use crate::stable_hasher::{HashStable, StableHasher}; use crate::stable_hasher::{HashStable, StableHasher};
use crate::sync::Lock; use crate::sync::Lock;

View file

@ -1,4 +1,4 @@
use crate::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use crate::indexed_vec::Idx; use crate::indexed_vec::Idx;
use std::collections::VecDeque; use std::collections::VecDeque;

View file

@ -1,5 +1,6 @@
#![feature(allow_internal_unstable)] #![feature(allow_internal_unstable)]
#![feature(unboxed_closures)] #![feature(unboxed_closures)]
#![feature(test)]
#![feature(fn_traits)] #![feature(fn_traits)]
pub mod indexed_vec; pub mod indexed_vec;

View file

@ -18,6 +18,7 @@ rustc = { path = "../librustc" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
rustc_index = { path = "../librustc_index" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }
stable_deref_trait = "1.0.0" stable_deref_trait = "1.0.0"
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }

View file

@ -35,7 +35,7 @@ use syntax::parse::source_file_to_stream;
use syntax::parse::parser::emit_unclosed_delims; use syntax::parse::parser::emit_unclosed_delims;
use syntax::symbol::Symbol; use syntax::symbol::Symbol;
use syntax_pos::{Span, FileName}; use syntax_pos::{Span, FileName};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
macro_rules! provide { macro_rules! provide {
(<$lt:tt> $tcx:ident, $def_id:ident, $other:ident, $cdata:ident, (<$lt:tt> $tcx:ident, $def_id:ident, $other:ident, $cdata:ident,

View file

@ -19,6 +19,7 @@ polonius-engine = "0.10.0"
rustc = { path = "../librustc" } rustc = { path = "../librustc" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_index = { path = "../librustc_index" }
rustc_errors = { path = "../librustc_errors" } rustc_errors = { path = "../librustc_errors" }
rustc_lexer = { path = "../librustc_lexer" } rustc_lexer = { path = "../librustc_lexer" }
rustc_serialize = { path = "../libserialize", package = "serialize" } rustc_serialize = { path = "../libserialize", package = "serialize" }

View file

@ -9,7 +9,7 @@ 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_data_structures::indexed_vec::IndexVec;
use rustc_data_structures::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

@ -5,7 +5,7 @@
use rustc::mir::{BasicBlock, Local, Location}; use rustc::mir::{BasicBlock, Local, Location};
use rustc::ty::RegionVid; use rustc::ty::RegionVid;
use rustc_data_structures::bit_set::BitIter; use rustc_index::bit_set::BitIter;
use crate::borrow_check::location::LocationIndex; use crate::borrow_check::location::LocationIndex;

View file

@ -18,7 +18,7 @@ use rustc::ty::query::Providers;
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder}; use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder};
use rustc_data_structures::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_data_structures::indexed_vec::IndexVec;

View file

@ -27,7 +27,7 @@ use rustc::mir::{
use rustc::ty::{self, subst::SubstsRef, RegionVid, Ty, TyCtxt, TypeFoldable}; use rustc::ty::{self, subst::SubstsRef, RegionVid, Ty, TyCtxt, TypeFoldable};
use rustc::util::common::ErrorReported; use rustc::util::common::ErrorReported;
use rustc_data_structures::binary_search_util; use rustc_data_structures::binary_search_util;
use rustc_data_structures::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::WithSuccessors; use rustc_data_structures::graph::WithSuccessors;
use rustc_data_structures::graph::scc::Sccs; use rustc_data_structures::graph::scc::Sccs;

View file

@ -1,6 +1,6 @@
use rustc::mir::{BasicBlock, Location, Body}; use rustc::mir::{BasicBlock, Location, Body};
use rustc::ty::{self, RegionVid}; use rustc::ty::{self, RegionVid};
use rustc_data_structures::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_data_structures::indexed_vec::Idx;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_data_structures::indexed_vec::IndexVec;

View file

@ -12,7 +12,7 @@ use rustc::traits::query::dropck_outlives::DropckOutlivesResult;
use rustc::traits::query::type_op::outlives::DropckOutlives; use rustc::traits::query::type_op::outlives::DropckOutlives;
use rustc::traits::query::type_op::TypeOp; use rustc::traits::query::type_op::TypeOp;
use rustc::ty::{Ty, TypeFoldable}; use rustc::ty::{Ty, TypeFoldable};
use rustc_data_structures::bit_set::HybridBitSet; use rustc_index::bit_set::HybridBitSet;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use std::rc::Rc; use std::rc::Rc;

View file

@ -15,7 +15,7 @@ use rustc::mir::*;
use rustc::middle::region; use rustc::middle::region;
use rustc::ty::{self, CanonicalUserTypeAnnotation, Ty}; use rustc::ty::{self, CanonicalUserTypeAnnotation, Ty};
use rustc::ty::layout::VariantIdx; use rustc::ty::layout::VariantIdx;
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::fx::{FxHashMap, FxHashSet}; use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use syntax::ast::Name; use syntax::ast::Name;
use syntax_pos::Span; use syntax_pos::Span;

View file

@ -9,9 +9,9 @@ use crate::build::Builder;
use crate::build::matches::{Candidate, MatchPair, Test, TestKind}; use crate::build::matches::{Candidate, MatchPair, Test, TestKind};
use crate::hair::*; use crate::hair::*;
use crate::hair::pattern::compare_const_vals; use crate::hair::pattern::compare_const_vals;
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc::ty::{self, Ty, adjustment::{PointerCast}}; use rustc::ty::{self, Ty, adjustment::PointerCast};
use rustc::ty::util::IntTypeExt; use rustc::ty::util::IntTypeExt;
use rustc::ty::layout::VariantIdx; use rustc::ty::layout::VariantIdx;
use rustc::mir::*; use rustc::mir::*;

View file

@ -2,7 +2,7 @@
//! locations. //! locations.
use rustc::mir::{BasicBlock, Location}; use rustc::mir::{BasicBlock, Location};
use rustc_data_structures::bit_set::{BitIter, BitSet, HybridBitSet}; use rustc_index::bit_set::{BitIter, BitSet, HybridBitSet};
use crate::dataflow::{BitDenotation, DataflowResults, GenKillSet}; use crate::dataflow::{BitDenotation, DataflowResults, GenKillSet};
use crate::dataflow::move_paths::{HasMoveData, MovePathIndex}; use crate::dataflow::move_paths::{HasMoveData, MovePathIndex};

View file

@ -20,7 +20,7 @@ use std::cmp::Ordering;
use std::ops; use std::ops;
use rustc::mir::{self, traversal, BasicBlock, Location}; use rustc::mir::{self, traversal, BasicBlock, Location};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_data_structures::indexed_vec::{Idx, IndexVec};
use rustc_data_structures::work_queue::WorkQueue; use rustc_data_structures::work_queue::WorkQueue;

View file

@ -5,7 +5,7 @@ use rustc::mir::{self, Location, Place, PlaceBase, Body};
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc::ty::RegionVid; use rustc::ty::RegionVid;
use rustc_data_structures::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_data_structures::indexed_vec::{Idx, IndexVec};

View file

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

View file

@ -1,7 +1,7 @@
use syntax::ast::{self, MetaItem}; use syntax::ast::{self, MetaItem};
use syntax::symbol::{Symbol, sym}; use syntax::symbol::{Symbol, sym};
use rustc_data_structures::bit_set::{BitSet, HybridBitSet}; use rustc_index::bit_set::{BitSet, HybridBitSet};
use rustc_data_structures::indexed_vec::Idx; use rustc_data_structures::indexed_vec::Idx;
use rustc_data_structures::work_queue::WorkQueue; use rustc_data_structures::work_queue::WorkQueue;

View file

@ -1,4 +1,4 @@
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc::hir::def_id::DefId; use rustc::hir::def_id::DefId;
use rustc::hir::intravisit::FnKind; use rustc::hir::intravisit::FnKind;
use rustc::hir::map::blocks::FnLikeNode; use rustc::hir::map::blocks::FnLikeNode;

View file

@ -194,7 +194,7 @@ use crate::monomorphize;
use rustc::util::nodemap::{FxHashSet, FxHashMap, DefIdMap}; use rustc::util::nodemap::{FxHashSet, FxHashMap, DefIdMap};
use rustc::util::common::time; use rustc::util::common::time;
use rustc_data_structures::bit_set::GrowableBitSet; use rustc_index::bit_set::GrowableBitSet;
use rustc_data_structures::sync::{MTRef, MTLock, ParallelIterator, par_iter}; use rustc_data_structures::sync::{MTRef, MTLock, ParallelIterator, par_iter};
use std::iter; use std::iter;

View file

@ -14,7 +14,7 @@ use rustc::ty::layout::VariantIdx;
use rustc::hir; use rustc::hir;
use rustc::mir::*; use rustc::mir::*;
use rustc::util::nodemap::FxHashMap; use rustc::util::nodemap::FxHashMap;
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use std::fmt; use std::fmt;
use syntax_pos::Span; use syntax_pos::Span;

View file

@ -59,7 +59,7 @@ use rustc::ty::layout::VariantIdx;
use rustc::ty::subst::SubstsRef; use rustc::ty::subst::SubstsRef;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_data_structures::indexed_vec::{Idx, IndexVec};
use rustc_data_structures::bit_set::{BitSet, BitMatrix}; use rustc_index::bit_set::{BitSet, BitMatrix};
use std::borrow::Cow; use std::borrow::Cow;
use std::iter; use std::iter;
use std::mem; use std::mem;

View file

@ -3,7 +3,7 @@
use rustc::hir::CodegenFnAttrFlags; use rustc::hir::CodegenFnAttrFlags;
use rustc::hir::def_id::DefId; use rustc::hir::def_id::DefId;
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_data_structures::indexed_vec::{Idx, IndexVec};
use rustc::mir::*; use rustc::mir::*;

View file

@ -4,7 +4,7 @@
//! The Qualif flags below can be used to also provide better //! The Qualif flags below can be used to also provide better
//! diagnostics as to why a constant rvalue wasn't promoted. //! diagnostics as to why a constant rvalue wasn't promoted.
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::IndexVec; use rustc_data_structures::indexed_vec::IndexVec;
use rustc_data_structures::fx::FxHashSet; use rustc_data_structures::fx::FxHashSet;
use rustc_target::spec::abi::Abi; use rustc_target::spec::abi::Abi;

View file

@ -1,6 +1,6 @@
use rustc::ty::TyCtxt; use rustc::ty::TyCtxt;
use rustc::mir::*; use rustc::mir::*;
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use crate::transform::{MirPass, MirSource}; use crate::transform::{MirPass, MirSource};
use crate::util::patch::MirPatch; use crate::util::patch::MirPatch;

View file

@ -6,7 +6,7 @@ use syntax_pos::Span;
use rustc::ty::{self, TyCtxt}; use rustc::ty::{self, TyCtxt};
use rustc::hir::def_id::DefId; use rustc::hir::def_id::DefId;
use rustc::mir::{self, Body, Location}; use rustc::mir::{self, Body, Location};
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use crate::transform::{MirPass, MirSource}; use crate::transform::{MirPass, MirSource};
use crate::dataflow::{do_dataflow, DebugFormatted}; use crate::dataflow::{do_dataflow, DebugFormatted};

View file

@ -27,7 +27,7 @@
//! naively generate still contains the `_a = ()` write in the unreachable block "after" the //! naively generate still contains the `_a = ()` write in the unreachable block "after" the
//! return. //! return.
use rustc_data_structures::bit_set::BitSet; use rustc_index::bit_set::BitSet;
use rustc_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_data_structures::indexed_vec::{Idx, IndexVec};
use rustc::ty::TyCtxt; use rustc::ty::TyCtxt;
use rustc::mir::*; use rustc::mir::*;

View file

@ -30,7 +30,7 @@ use rustc::mir::visit::{
use rustc::mir::Local; use rustc::mir::Local;
use rustc::mir::*; use rustc::mir::*;
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_data_structures::indexed_vec::{Idx, IndexVec}; use rustc_data_structures::indexed_vec::{Idx, IndexVec};
use rustc_data_structures::work_queue::WorkQueue; use rustc_data_structures::work_queue::WorkQueue;
use std::fs; use std::fs;

View file

@ -18,6 +18,7 @@ lazy_static = "1.0.0"
syntax_pos = { path = "../libsyntax_pos" } syntax_pos = { path = "../libsyntax_pos" }
errors = { path = "../librustc_errors", package = "rustc_errors" } errors = { path = "../librustc_errors", package = "rustc_errors" }
rustc_data_structures = { path = "../librustc_data_structures" } rustc_data_structures = { path = "../librustc_data_structures" }
rustc_index = { path = "../librustc_index" }
rustc_lexer = { path = "../librustc_lexer" } rustc_lexer = { path = "../librustc_lexer" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] } smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }

View file

@ -26,7 +26,7 @@ extern crate proc_macro;
pub use errors; pub use errors;
use rustc_data_structures::sync::Lock; use rustc_data_structures::sync::Lock;
use rustc_data_structures::bit_set::GrowableBitSet; use rustc_index::bit_set::GrowableBitSet;
pub use rustc_data_structures::thin_vec::ThinVec; pub use rustc_data_structures::thin_vec::ThinVec;
use ast::AttrId; use ast::AttrId;
use syntax_pos::edition::Edition; use syntax_pos::edition::Edition;