Skip to content

Commit 1cff2e6

Browse files
committed
move index_vec into rustc_index
1 parent be32185 commit 1cff2e6

File tree

6 files changed

+16
-1
lines changed

6 files changed

+16
-1
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,6 +3400,7 @@ dependencies = [
34003400
"rustc-hash",
34013401
"rustc-rayon",
34023402
"rustc-rayon-core",
3403+
"rustc_index",
34033404
"serialize",
34043405
"smallvec",
34053406
"stable_deref_trait",
@@ -3463,6 +3464,13 @@ dependencies = [
34633464
"syntax_pos",
34643465
]
34653466

3467+
[[package]]
3468+
name = "rustc_index"
3469+
version = "0.0.0"
3470+
dependencies = [
3471+
"serialize",
3472+
]
3473+
34663474
[[package]]
34673475
name = "rustc_interface"
34683476
version = "0.0.0"

src/librustc_data_structures/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ rayon = { version = "0.2.0", package = "rustc-rayon" }
2424
rayon-core = { version = "0.2.0", package = "rustc-rayon-core" }
2525
rustc-hash = "1.0.1"
2626
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
27+
rustc_index = { path = "../librustc_index", package = "rustc_index" }
2728

2829
[dependencies.parking_lot]
2930
version = "0.9"

src/librustc_data_structures/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extern crate libc;
3737
extern crate cfg_if;
3838

3939
pub use rustc_serialize::hex::ToHex;
40+
pub use rustc_index::{indexed_vec, newtype_index};
4041

4142
#[inline(never)]
4243
#[cold]
@@ -75,7 +76,6 @@ pub mod flock;
7576
pub mod fx;
7677
pub mod stable_map;
7778
pub mod graph;
78-
pub mod indexed_vec;
7979
pub mod jobserver;
8080
pub mod obligation_forest;
8181
pub mod owning_ref;

src/librustc_index/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ path = "lib.rs"
1010
doctest = false
1111

1212
[dependencies]
13+
rustc_serialize = { path = "../libserialize", package = "serialize" }

src/librustc_index/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(allow_internal_unstable)]
2+
#![feature(unboxed_closures)]
3+
#![feature(fn_traits)]
4+
5+
pub mod indexed_vec;

0 commit comments

Comments
 (0)