Skip to content

Commit 64f61c7

Browse files
committed
remove indexed_vec re-export from rustc_data_structures
1 parent d20183d commit 64f61c7

File tree

125 files changed

+168
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+168
-164
lines changed

Cargo.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,6 @@ dependencies = [
33423342
name = "rustc_codegen_llvm"
33433343
version = "0.0.0"
33443344
dependencies = [
3345-
"rustc_index",
33463345
"rustc_llvm",
33473346
]
33483347

@@ -3519,6 +3518,7 @@ dependencies = [
35193518
"log",
35203519
"rustc",
35213520
"rustc_data_structures",
3521+
"rustc_index",
35223522
"rustc_target",
35233523
"syntax",
35243524
"syntax_pos",
@@ -3687,6 +3687,7 @@ dependencies = [
36873687
"bitflags",
36883688
"log",
36893689
"rustc_data_structures",
3690+
"rustc_index",
36903691
"serialize",
36913692
"syntax_pos",
36923693
]
@@ -3735,6 +3736,7 @@ dependencies = [
37353736
"rustc",
37363737
"rustc_data_structures",
37373738
"rustc_errors",
3739+
"rustc_index",
37383740
"rustc_target",
37393741
"smallvec",
37403742
"syntax",
@@ -4281,6 +4283,7 @@ dependencies = [
42814283
"arena",
42824284
"cfg-if",
42834285
"rustc_data_structures",
4286+
"rustc_index",
42844287
"rustc_macros",
42854288
"scoped-tls",
42864289
"serialize",

src/librustc/arena.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ macro_rules! arena_types {
2626
[] steal_mir: rustc::ty::steal::Steal<rustc::mir::Body<$tcx>>,
2727
[] mir: rustc::mir::Body<$tcx>,
2828
[] steal_promoted: rustc::ty::steal::Steal<
29-
rustc_data_structures::indexed_vec::IndexVec<
29+
rustc_index::vec::IndexVec<
3030
rustc::mir::Promoted,
3131
rustc::mir::Body<$tcx>
3232
>
3333
>,
34-
[] promoted: rustc_data_structures::indexed_vec::IndexVec<
34+
[] promoted: rustc_index::vec::IndexVec<
3535
rustc::mir::Promoted,
3636
rustc::mir::Body<$tcx>
3737
>,

src/librustc/dep_graph/graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use errors::Diagnostic;
22
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
33
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
4-
use rustc_data_structures::indexed_vec::{Idx, IndexVec};
4+
use rustc_index::vec::{Idx, IndexVec};
55
use smallvec::SmallVec;
66
use rustc_data_structures::sync::{Lrc, Lock, AtomicU32, Ordering};
77
use std::env;
@@ -26,7 +26,7 @@ pub struct DepGraph {
2626
data: Option<Lrc<DepGraphData>>,
2727
}
2828

29-
newtype_index! {
29+
rustc_index::newtype_index! {
3030
pub struct DepNodeIndex { .. }
3131
}
3232

src/librustc/dep_graph/serialized.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
33
use crate::dep_graph::DepNode;
44
use crate::ich::Fingerprint;
5-
use rustc_data_structures::indexed_vec::{IndexVec, Idx};
5+
use rustc_index::vec::{IndexVec, Idx};
66

7-
newtype_index! {
7+
rustc_index::newtype_index! {
88
pub struct SerializedDepNodeIndex { .. }
99
}
1010

src/librustc/hir/def_id.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::ty::{self, TyCtxt};
2-
use rustc_data_structures::indexed_vec::Idx;
2+
use rustc_index::vec::Idx;
33
use std::fmt;
44
use std::u32;
55

6-
newtype_index! {
6+
rustc_index::newtype_index! {
77
pub struct CrateId {
88
ENCODABLE = custom
99
}
@@ -87,7 +87,7 @@ impl fmt::Display for CrateNum {
8787
impl rustc_serialize::UseSpecializedEncodable for CrateNum {}
8888
impl rustc_serialize::UseSpecializedDecodable for CrateNum {}
8989

90-
newtype_index! {
90+
rustc_index::newtype_index! {
9191
/// A DefIndex is an index into the hir-map for a crate, identifying a
9292
/// particular definition. It should really be considered an interned
9393
/// shorthand for a particular DefPath.

src/librustc/hir/lowering.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use crate::util::common::FN_OUTPUT_NAME;
5252
use crate::util::nodemap::{DefIdMap, NodeMap};
5353
use errors::Applicability;
5454
use rustc_data_structures::fx::FxHashSet;
55-
use rustc_data_structures::indexed_vec::IndexVec;
55+
use rustc_index::vec::IndexVec;
5656
use rustc_data_structures::thin_vec::ThinVec;
5757
use rustc_data_structures::sync::Lrc;
5858

src/librustc/hir/map/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::hir::map::HirEntryMap;
55
use crate::hir::def_id::{LOCAL_CRATE, CrateNum};
66
use crate::hir::intravisit::{Visitor, NestedVisitorMap};
77
use rustc_data_structures::svh::Svh;
8-
use rustc_data_structures::indexed_vec::IndexVec;
8+
use rustc_index::vec::IndexVec;
99
use crate::ich::Fingerprint;
1010
use crate::middle::cstore::CrateStore;
1111
use crate::session::CrateDisambiguator;

src/librustc/hir/map/definitions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::session::CrateDisambiguator;
1111
use crate::util::nodemap::NodeMap;
1212

1313
use rustc_data_structures::fx::FxHashMap;
14-
use rustc_data_structures::indexed_vec::{IndexVec};
14+
use rustc_index::vec::{IndexVec};
1515
use rustc_data_structures::stable_hasher::StableHasher;
1616
use std::borrow::Borrow;
1717
use std::fmt::Write;

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::util::common::time;
1717

1818
use rustc_target::spec::abi::Abi;
1919
use rustc_data_structures::svh::Svh;
20-
use rustc_data_structures::indexed_vec::IndexVec;
20+
use rustc_index::vec::IndexVec;
2121
use syntax::ast::{self, Name, NodeId};
2222
use syntax::source_map::Spanned;
2323
use syntax::ext::base::MacroKind;

src/librustc/hir/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ impl fmt::Display for HirId {
122122

123123
// Hack to ensure that we don't try to access the private parts of `ItemLocalId` in this module.
124124
mod item_local_id_inner {
125-
use rustc_data_structures::indexed_vec::Idx;
125+
use rustc_index::vec::Idx;
126126
use rustc_macros::HashStable;
127-
newtype_index! {
127+
rustc_index::newtype_index! {
128128
/// An `ItemLocalId` uniquely identifies something within a given "item-like";
129129
/// that is, within a `hir::Item`, `hir::TraitItem`, or `hir::ImplItem`. There is no
130130
/// guarantee that the numerical value of a given `ItemLocalId` corresponds to

0 commit comments

Comments
 (0)