diff options
| author | bors <bors@rust-lang.org> | 2019-09-30 13:33:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-30 13:33:15 +0000 |
| commit | 22bc9e1d9ca49ee4f5cd953088ab09c238a6dd26 (patch) | |
| tree | 1447e329ac138963f386d612dd9eb78f8a03dafe /src/libsyntax | |
| parent | e0436d912df090b0c3cba9a8b818aab408756e49 (diff) | |
| parent | 64f61c7888c9cb2cbd7d37f87a6cbec2858ee409 (diff) | |
| download | rust-22bc9e1d9ca49ee4f5cd953088ab09c238a6dd26.tar.gz rust-22bc9e1d9ca49ee4f5cd953088ab09c238a6dd26.zip | |
Auto merge of #64778 - csmoe:index, r=eddyb
Introduce librustc_index crate Closes #50592
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/libsyntax/ast.rs | 7 | ||||
| -rw-r--r-- | src/libsyntax/lib.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/Cargo.toml b/src/libsyntax/Cargo.toml index 196cf4d9dfa..d8de21cc677 100644 --- a/src/libsyntax/Cargo.toml +++ b/src/libsyntax/Cargo.toml @@ -18,6 +18,7 @@ lazy_static = "1.0.0" syntax_pos = { path = "../libsyntax_pos" } errors = { path = "../librustc_errors", package = "rustc_errors" } rustc_data_structures = { path = "../librustc_data_structures" } +rustc_index = { path = "../librustc_index" } rustc_lexer = { path = "../librustc_lexer" } rustc_target = { path = "../librustc_target" } smallvec = { version = "0.6.7", features = ["union", "may_dangle"] } diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index bc468c1ad0e..7a5c92167bc 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -14,7 +14,7 @@ use crate::symbol::{kw, sym, Symbol}; use crate::tokenstream::TokenStream; use crate::ThinVec; -use rustc_data_structures::indexed_vec::Idx; +use rustc_index::vec::Idx; #[cfg(target_arch = "x86_64")] use rustc_data_structures::static_assert_size; use rustc_target::spec::abi::Abi; @@ -241,9 +241,8 @@ impl ParenthesizedArgs { // hack to ensure that we don't try to access the private parts of `NodeId` in this module mod node_id_inner { - use rustc_data_structures::indexed_vec::Idx; - use rustc_data_structures::newtype_index; - newtype_index! { + use rustc_index::vec::Idx; + rustc_index::newtype_index! { pub struct NodeId { ENCODABLE = custom DEBUG_FORMAT = "NodeId({})" diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 2c10220c766..d2c76b669dd 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -26,7 +26,7 @@ extern crate proc_macro; pub use errors; 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; use ast::AttrId; use syntax_pos::edition::Edition; |
