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 | |
parent | 0cda188621b792265c957bdf4ac54af31cbc9947 (diff) |
switch to released id-arena
-rw-r--r-- | Cargo.lock | 10 | ||||
-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 |
5 files changed, 8 insertions, 19 deletions
diff --git a/Cargo.lock b/Cargo.lock index bacea8dc3..42a962cf6 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -352,8 +352,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
352 | 352 | ||
353 | [[package]] | 353 | [[package]] |
354 | name = "id-arena" | 354 | name = "id-arena" |
355 | version = "1.0.2" | 355 | version = "2.0.0" |
356 | source = "git+https://github.com/fitzgen/id-arena/?rev=43ecd67#43ecd67d81f707dfdc1b0d067b96c17f7a7ef9b8" | 356 | source = "registry+https://github.com/rust-lang/crates.io-index" |
357 | 357 | ||
358 | [[package]] | 358 | [[package]] |
359 | name = "idna" | 359 | name = "idna" |
@@ -633,8 +633,6 @@ dependencies = [ | |||
633 | name = "ra_db" | 633 | name = "ra_db" |
634 | version = "0.1.0" | 634 | version = "0.1.0" |
635 | dependencies = [ | 635 | dependencies = [ |
636 | "id-arena 1.0.2 (git+https://github.com/fitzgen/id-arena/?rev=43ecd67)", | ||
637 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", | ||
638 | "parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", | 636 | "parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", |
639 | "ra_editor 0.1.0", | 637 | "ra_editor 0.1.0", |
640 | "ra_syntax 0.1.0", | 638 | "ra_syntax 0.1.0", |
@@ -660,7 +658,7 @@ dependencies = [ | |||
660 | name = "ra_hir" | 658 | name = "ra_hir" |
661 | version = "0.1.0" | 659 | version = "0.1.0" |
662 | dependencies = [ | 660 | dependencies = [ |
663 | "id-arena 1.0.2 (git+https://github.com/fitzgen/id-arena/?rev=43ecd67)", | 661 | "id-arena 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", |
664 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", | 662 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", |
665 | "parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", | 663 | "parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", |
666 | "ra_db 0.1.0", | 664 | "ra_db 0.1.0", |
@@ -1339,7 +1337,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1339 | "checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" | 1337 | "checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" |
1340 | "checksum heck 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ea04fa3ead4e05e51a7c806fc07271fdbde4e246a6c6d1efd52e72230b771b82" | 1338 | "checksum heck 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ea04fa3ead4e05e51a7c806fc07271fdbde4e246a6c6d1efd52e72230b771b82" |
1341 | "checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" | 1339 | "checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" |
1342 | "checksum id-arena 1.0.2 (git+https://github.com/fitzgen/id-arena/?rev=43ecd67)" = "<none>" | 1340 | "checksum id-arena 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3a7250033feafee46a1cecd2c2616a64aec1d064f38c9ae2bdd297728542843e" |
1343 | "checksum idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" | 1341 | "checksum idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" |
1344 | "checksum im 12.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ae9c7f9bb8aee47fc16d535a705f7867a9fc83bb822e5e1043bb98e77ffeed3c" | 1342 | "checksum im 12.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ae9c7f9bb8aee47fc16d535a705f7867a9fc83bb822e5e1043bb98e77ffeed3c" |
1345 | "checksum indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e81a7c05f79578dbc15793d8b619db9ba32b4577003ef3af1a91c416798c58d" | 1343 | "checksum indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e81a7c05f79578dbc15793d8b619db9ba32b4577003ef3af1a91c416798c58d" |
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 | } |