diff options
author | Aleksey Kladov <[email protected]> | 2019-10-30 14:40:13 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-30 15:04:24 +0000 |
commit | c1ed9ccc4ed7dfff3abb6eb01d7c311c8e31108c (patch) | |
tree | dc95229fc0863b46fe3d60cf25c2a56cdc4c8b39 /crates/ra_hir/src | |
parent | e5300ad3baf80c9903235a98a12b6cfd409e9f10 (diff) |
fix compilation
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/db.rs | 7 | ||||
-rw-r--r-- | crates/ra_hir/src/either.rs | 1 | ||||
-rw-r--r-- | crates/ra_hir/src/lib.rs | 3 | ||||
-rw-r--r-- | crates/ra_hir/src/mock.rs | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 142d7338d..ebfd970eb 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -23,7 +23,10 @@ use crate::{ | |||
23 | Struct, StructField, Trait, TypeAlias, | 23 | Struct, StructField, Trait, TypeAlias, |
24 | }; | 24 | }; |
25 | 25 | ||
26 | pub use hir_def::db::{InternDatabase, InternDatabaseStorage}; | 26 | pub use hir_def::db::{ |
27 | DefDatabase2, DefDatabase2Storage, InternDatabase, InternDatabaseStorage, RawItemsQuery, | ||
28 | RawItemsWithSourceMapQuery, | ||
29 | }; | ||
27 | pub use hir_expand::db::{ | 30 | pub use hir_expand::db::{ |
28 | AstDatabase, AstDatabaseStorage, AstIdMapQuery, MacroArgQuery, MacroDefQuery, MacroExpandQuery, | 31 | AstDatabase, AstDatabaseStorage, AstIdMapQuery, MacroArgQuery, MacroDefQuery, MacroExpandQuery, |
29 | ParseMacroQuery, | 32 | ParseMacroQuery, |
@@ -32,7 +35,7 @@ pub use hir_expand::db::{ | |||
32 | // This database uses `AstDatabase` internally, | 35 | // This database uses `AstDatabase` internally, |
33 | #[salsa::query_group(DefDatabaseStorage)] | 36 | #[salsa::query_group(DefDatabaseStorage)] |
34 | #[salsa::requires(AstDatabase)] | 37 | #[salsa::requires(AstDatabase)] |
35 | pub trait DefDatabase: HirDebugDatabase + hir_def::db::DefDatabase2 { | 38 | pub trait DefDatabase: HirDebugDatabase + DefDatabase2 { |
36 | #[salsa::invoke(crate::adt::StructData::struct_data_query)] | 39 | #[salsa::invoke(crate::adt::StructData::struct_data_query)] |
37 | fn struct_data(&self, s: Struct) -> Arc<StructData>; | 40 | fn struct_data(&self, s: Struct) -> Arc<StructData>; |
38 | 41 | ||
diff --git a/crates/ra_hir/src/either.rs b/crates/ra_hir/src/either.rs deleted file mode 100644 index 44498dd38..000000000 --- a/crates/ra_hir/src/either.rs +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | pub use hir_def::either::*; | ||
diff --git a/crates/ra_hir/src/lib.rs b/crates/ra_hir/src/lib.rs index 4dd99c74f..fabe6eff6 100644 --- a/crates/ra_hir/src/lib.rs +++ b/crates/ra_hir/src/lib.rs | |||
@@ -26,7 +26,6 @@ macro_rules! impl_froms { | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | mod either; | ||
30 | pub mod debug; | 29 | pub mod debug; |
31 | 30 | ||
32 | pub mod db; | 31 | pub mod db; |
@@ -62,7 +61,6 @@ use crate::{ids::MacroFileKind, resolve::Resolver}; | |||
62 | 61 | ||
63 | pub use crate::{ | 62 | pub use crate::{ |
64 | adt::VariantDef, | 63 | adt::VariantDef, |
65 | either::Either, | ||
66 | expr::ExprScopes, | 64 | expr::ExprScopes, |
67 | from_source::FromSource, | 65 | from_source::FromSource, |
68 | generics::{GenericDef, GenericParam, GenericParams, HasGenericParams}, | 66 | generics::{GenericDef, GenericParam, GenericParams, HasGenericParams}, |
@@ -85,6 +83,7 @@ pub use self::code_model::{ | |||
85 | }; | 83 | }; |
86 | 84 | ||
87 | pub use hir_def::{ | 85 | pub use hir_def::{ |
86 | either::Either, | ||
88 | name::Name, | 87 | name::Name, |
89 | path::{Path, PathKind}, | 88 | path::{Path, PathKind}, |
90 | type_ref::Mutability, | 89 | type_ref::Mutability, |
diff --git a/crates/ra_hir/src/mock.rs b/crates/ra_hir/src/mock.rs index bb2d78abe..35dfaf3ba 100644 --- a/crates/ra_hir/src/mock.rs +++ b/crates/ra_hir/src/mock.rs | |||
@@ -17,12 +17,12 @@ use crate::{db, debug::HirDebugHelper, diagnostics::DiagnosticSink}; | |||
17 | pub const WORKSPACE: SourceRootId = SourceRootId(0); | 17 | pub const WORKSPACE: SourceRootId = SourceRootId(0); |
18 | 18 | ||
19 | #[salsa::database( | 19 | #[salsa::database( |
20 | hir_def::db::DefDatabase2Storage, | ||
21 | ra_db::SourceDatabaseExtStorage, | 20 | ra_db::SourceDatabaseExtStorage, |
22 | ra_db::SourceDatabaseStorage, | 21 | ra_db::SourceDatabaseStorage, |
23 | db::InternDatabaseStorage, | 22 | db::InternDatabaseStorage, |
24 | db::AstDatabaseStorage, | 23 | db::AstDatabaseStorage, |
25 | db::DefDatabaseStorage, | 24 | db::DefDatabaseStorage, |
25 | db::DefDatabase2Storage, | ||
26 | db::HirDatabaseStorage | 26 | db::HirDatabaseStorage |
27 | )] | 27 | )] |
28 | #[derive(Debug)] | 28 | #[derive(Debug)] |