diff options
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)] |