move index_vec into rustc_index

This commit is contained in:
csmoe 2019-09-26 03:09:51 +08:00
parent be32185810
commit 1cff2e6557
6 changed files with 16 additions and 1 deletions

View File

@ -3400,6 +3400,7 @@ dependencies = [
"rustc-hash",
"rustc-rayon",
"rustc-rayon-core",
"rustc_index",
"serialize",
"smallvec",
"stable_deref_trait",
@ -3463,6 +3464,13 @@ dependencies = [
"syntax_pos",
]
[[package]]
name = "rustc_index"
version = "0.0.0"
dependencies = [
"serialize",
]
[[package]]
name = "rustc_interface"
version = "0.0.0"

View File

@ -24,6 +24,7 @@ rayon = { version = "0.2.0", package = "rustc-rayon" }
rayon-core = { version = "0.2.0", package = "rustc-rayon-core" }
rustc-hash = "1.0.1"
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
rustc_index = { path = "../librustc_index", package = "rustc_index" }
[dependencies.parking_lot]
version = "0.9"

View File

@ -37,6 +37,7 @@ extern crate libc;
extern crate cfg_if;
pub use rustc_serialize::hex::ToHex;
pub use rustc_index::{indexed_vec, newtype_index};
#[inline(never)]
#[cold]
@ -75,7 +76,6 @@ pub mod flock;
pub mod fx;
pub mod stable_map;
pub mod graph;
pub mod indexed_vec;
pub mod jobserver;
pub mod obligation_forest;
pub mod owning_ref;

View File

@ -10,3 +10,4 @@ path = "lib.rs"
doctest = false
[dependencies]
rustc_serialize = { path = "../libserialize", package = "serialize" }

View File

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