diff options
author | Aleksey Kladov <[email protected]> | 2018-12-19 13:13:16 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-20 09:15:38 +0000 |
commit | e6465e7e2a7e136edd652d5f4c93b961dd652cbc (patch) | |
tree | 4e82bd6b881d322936f7528a95d87763dca2e18c /crates/ra_db/src/input.rs | |
parent | 51fec4ef844d7fe83bf96c74e02e5f820837ff2d (diff) |
index all local crates
Diffstat (limited to 'crates/ra_db/src/input.rs')
-rw-r--r-- | crates/ra_db/src/input.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index 51daa8e86..cccf37cc2 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs | |||
@@ -8,8 +8,6 @@ use salsa; | |||
8 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] | 8 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] |
9 | pub struct SourceRootId(pub u32); | 9 | pub struct SourceRootId(pub u32); |
10 | 10 | ||
11 | pub const WORKSPACE: SourceRootId = SourceRootId(0); | ||
12 | |||
13 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] | 11 | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] |
14 | pub struct FileId(pub u32); | 12 | pub struct FileId(pub u32); |
15 | 13 | ||
@@ -102,8 +100,12 @@ salsa::query_group! { | |||
102 | type SourceRootQuery; | 100 | type SourceRootQuery; |
103 | storage input; | 101 | storage input; |
104 | } | 102 | } |
105 | fn libraries() -> Arc<Vec<SourceRootId>> { | 103 | fn local_roots() -> Arc<Vec<SourceRootId>> { |
106 | type LibrariesQuery; | 104 | type LocalRootsQuery; |
105 | storage input; | ||
106 | } | ||
107 | fn library_roots() -> Arc<Vec<SourceRootId>> { | ||
108 | type LibraryRootsQuery; | ||
107 | storage input; | 109 | storage input; |
108 | } | 110 | } |
109 | fn crate_graph() -> Arc<CrateGraph> { | 111 | fn crate_graph() -> Arc<CrateGraph> { |