diff options
author | Aleksey Kladov <[email protected]> | 2018-11-28 18:03:30 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-28 18:03:30 +0000 |
commit | 70a7cb34ec18d30a680a73727e1d87a0a786dc44 (patch) | |
tree | e23d6bf49854c5ad42683accaf3f0c43488188a4 /crates | |
parent | 0cda188621b792265c957bdf4ac54af31cbc9947 (diff) |
switch to released id-arena
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_db/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_db/src/lib.rs | 7 | ||||
-rw-r--r-- | crates/ra_hir/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/arena.rs | 6 |
4 files changed, 4 insertions, 13 deletions
diff --git a/crates/ra_db/Cargo.toml b/crates/ra_db/Cargo.toml index 3bf2f635e..f316c0ab2 100644 --- a/crates/ra_db/Cargo.toml +++ b/crates/ra_db/Cargo.toml | |||
@@ -5,12 +5,10 @@ version = "0.1.0" | |||
5 | authors = ["Aleksey Kladov <[email protected]>"] | 5 | authors = ["Aleksey Kladov <[email protected]>"] |
6 | 6 | ||
7 | [dependencies] | 7 | [dependencies] |
8 | log = "0.4.5" | ||
9 | relative-path = "0.4.0" | 8 | relative-path = "0.4.0" |
10 | salsa = "0.8.0" | 9 | salsa = "0.8.0" |
11 | rustc-hash = "1.0" | 10 | rustc-hash = "1.0" |
12 | parking_lot = "0.6.4" | 11 | parking_lot = "0.6.4" |
13 | id-arena = { git = "https://github.com/fitzgen/id-arena/", rev = "43ecd67" } | ||
14 | ra_syntax = { path = "../ra_syntax" } | 12 | ra_syntax = { path = "../ra_syntax" } |
15 | ra_editor = { path = "../ra_editor" } | 13 | ra_editor = { path = "../ra_editor" } |
16 | test_utils = { path = "../test_utils" } | 14 | test_utils = { path = "../test_utils" } |
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 6a996c7f4..53805aada 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs | |||
@@ -1,11 +1,4 @@ | |||
1 | //! ra_db defines basic database traits. Concrete DB is defined by ra_analysis. | 1 | //! ra_db defines basic database traits. Concrete DB is defined by ra_analysis. |
2 | |||
3 | extern crate ra_editor; | ||
4 | extern crate ra_syntax; | ||
5 | extern crate relative_path; | ||
6 | extern crate rustc_hash; | ||
7 | extern crate salsa; | ||
8 | |||
9 | mod syntax_ptr; | 2 | mod syntax_ptr; |
10 | mod file_resolver; | 3 | mod file_resolver; |
11 | mod input; | 4 | mod input; |
diff --git a/crates/ra_hir/Cargo.toml b/crates/ra_hir/Cargo.toml index 9bde289e7..1b9e148b2 100644 --- a/crates/ra_hir/Cargo.toml +++ b/crates/ra_hir/Cargo.toml | |||
@@ -10,7 +10,7 @@ relative-path = "0.4.0" | |||
10 | salsa = "0.8.0" | 10 | salsa = "0.8.0" |
11 | rustc-hash = "1.0" | 11 | rustc-hash = "1.0" |
12 | parking_lot = "0.6.4" | 12 | parking_lot = "0.6.4" |
13 | id-arena = { git = "https://github.com/fitzgen/id-arena/", rev = "43ecd67" } | 13 | id-arena = "2.0" |
14 | ra_syntax = { path = "../ra_syntax" } | 14 | ra_syntax = { path = "../ra_syntax" } |
15 | ra_editor = { path = "../ra_editor" } | 15 | ra_editor = { path = "../ra_editor" } |
16 | ra_db = { path = "../ra_db" } | 16 | ra_db = { path = "../ra_db" } |
diff --git a/crates/ra_hir/src/arena.rs b/crates/ra_hir/src/arena.rs index 8d67ab1c9..d4f9d9cb9 100644 --- a/crates/ra_hir/src/arena.rs +++ b/crates/ra_hir/src/arena.rs | |||
@@ -46,10 +46,10 @@ pub(crate) struct ArenaBehavior<T> { | |||
46 | 46 | ||
47 | impl<T> id_arena::ArenaBehavior for ArenaBehavior<T> { | 47 | impl<T> id_arena::ArenaBehavior for ArenaBehavior<T> { |
48 | type Id = Id<T>; | 48 | type Id = Id<T>; |
49 | fn new_arena_id() -> usize { | 49 | fn new_arena_id() -> u32 { |
50 | 0 | 50 | 0 |
51 | } | 51 | } |
52 | fn new_id(_arena_id: usize, index: usize) -> Id<T> { | 52 | fn new_id(_arena_id: u32, index: usize) -> Id<T> { |
53 | Id { | 53 | Id { |
54 | idx: index as u32, | 54 | idx: index as u32, |
55 | _ty: PhantomData, | 55 | _ty: PhantomData, |
@@ -58,7 +58,7 @@ impl<T> id_arena::ArenaBehavior for ArenaBehavior<T> { | |||
58 | fn index(id: Id<T>) -> usize { | 58 | fn index(id: Id<T>) -> usize { |
59 | id.idx as usize | 59 | id.idx as usize |
60 | } | 60 | } |
61 | fn arena_id(_id: Id<T>) -> usize { | 61 | fn arena_id(_id: Id<T>) -> u32 { |
62 | 0 | 62 | 0 |
63 | } | 63 | } |
64 | } | 64 | } |