From c1ed9ccc4ed7dfff3abb6eb01d7c311c8e31108c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 30 Oct 2019 17:40:13 +0300 Subject: fix compilation --- crates/ra_hir/src/db.rs | 7 +++++-- crates/ra_hir/src/either.rs | 1 - crates/ra_hir/src/lib.rs | 3 +-- crates/ra_hir/src/mock.rs | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 crates/ra_hir/src/either.rs (limited to 'crates/ra_hir/src') 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::{ Struct, StructField, Trait, TypeAlias, }; -pub use hir_def::db::{InternDatabase, InternDatabaseStorage}; +pub use hir_def::db::{ + DefDatabase2, DefDatabase2Storage, InternDatabase, InternDatabaseStorage, RawItemsQuery, + RawItemsWithSourceMapQuery, +}; pub use hir_expand::db::{ AstDatabase, AstDatabaseStorage, AstIdMapQuery, MacroArgQuery, MacroDefQuery, MacroExpandQuery, ParseMacroQuery, @@ -32,7 +35,7 @@ pub use hir_expand::db::{ // This database uses `AstDatabase` internally, #[salsa::query_group(DefDatabaseStorage)] #[salsa::requires(AstDatabase)] -pub trait DefDatabase: HirDebugDatabase + hir_def::db::DefDatabase2 { +pub trait DefDatabase: HirDebugDatabase + DefDatabase2 { #[salsa::invoke(crate::adt::StructData::struct_data_query)] fn struct_data(&self, s: Struct) -> Arc; 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 @@ -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 { } } -mod either; pub mod debug; pub mod db; @@ -62,7 +61,6 @@ use crate::{ids::MacroFileKind, resolve::Resolver}; pub use crate::{ adt::VariantDef, - either::Either, expr::ExprScopes, from_source::FromSource, generics::{GenericDef, GenericParam, GenericParams, HasGenericParams}, @@ -85,6 +83,7 @@ pub use self::code_model::{ }; pub use hir_def::{ + either::Either, name::Name, path::{Path, PathKind}, 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}; pub const WORKSPACE: SourceRootId = SourceRootId(0); #[salsa::database( - hir_def::db::DefDatabase2Storage, ra_db::SourceDatabaseExtStorage, ra_db::SourceDatabaseStorage, db::InternDatabaseStorage, db::AstDatabaseStorage, db::DefDatabaseStorage, + db::DefDatabase2Storage, db::HirDatabaseStorage )] #[derive(Debug)] -- cgit v1.2.3