diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 20:43:09 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 20:43:09 +0000 |
commit | 3c7acecade09e1234ac7b1d1ed2f22edbc543f64 (patch) | |
tree | 462edbf67d8647a21c16720d621a164293651c79 /crates/ra_db | |
parent | d0ddc5a7c1e3f3df09f4e3637cc80459d8273310 (diff) | |
parent | c2474fcd386a267cf49f6d9d47ca6ff4585ca330 (diff) |
Merge #656
656: :arrow_up deps r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_db/src/lib.rs | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/crates/ra_db/Cargo.toml b/crates/ra_db/Cargo.toml index 3568da905..9aa77f72e 100644 --- a/crates/ra_db/Cargo.toml +++ b/crates/ra_db/Cargo.toml | |||
@@ -6,9 +6,10 @@ authors = ["Aleksey Kladov <[email protected]>"] | |||
6 | 6 | ||
7 | [dependencies] | 7 | [dependencies] |
8 | relative-path = "0.4.0" | 8 | relative-path = "0.4.0" |
9 | salsa = "0.10.0-alpha3" | 9 | salsa = "0.10.0-alpha4" |
10 | rustc-hash = "1.0" | 10 | rustc-hash = "1.0" |
11 | parking_lot = "0.7.0" | 11 | parking_lot = "0.7.0" |
12 | |||
12 | ra_arena = { path = "../ra_arena" } | 13 | ra_arena = { path = "../ra_arena" } |
13 | ra_syntax = { path = "../ra_syntax" } | 14 | ra_syntax = { path = "../ra_syntax" } |
14 | test_utils = { path = "../test_utils" } | 15 | test_utils = { path = "../test_utils" } |
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 7e13f70bc..3a0aa7d24 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs | |||
@@ -63,7 +63,7 @@ pub struct FileRange { | |||
63 | pub range: TextRange, | 63 | pub range: TextRange, |
64 | } | 64 | } |
65 | 65 | ||
66 | #[salsa::query_group] | 66 | #[salsa::query_group(FilesDatabaseStorage)] |
67 | pub trait FilesDatabase: salsa::Database { | 67 | pub trait FilesDatabase: salsa::Database { |
68 | /// Text of the file. | 68 | /// Text of the file. |
69 | #[salsa::input] | 69 | #[salsa::input] |
@@ -102,7 +102,7 @@ fn source_root_crates(db: &impl FilesDatabase, id: SourceRootId) -> Arc<Vec<Crat | |||
102 | Arc::new(res) | 102 | Arc::new(res) |
103 | } | 103 | } |
104 | 104 | ||
105 | #[salsa::query_group] | 105 | #[salsa::query_group(SyntaxDatabaseStorage)] |
106 | pub trait SyntaxDatabase: FilesDatabase + BaseDatabase { | 106 | pub trait SyntaxDatabase: FilesDatabase + BaseDatabase { |
107 | fn source_file(&self, file_id: FileId) -> TreeArc<SourceFile>; | 107 | fn source_file(&self, file_id: FileId) -> TreeArc<SourceFile>; |
108 | } | 108 | } |