aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir/src')
-rw-r--r--crates/hir/src/db.rs7
-rw-r--r--crates/hir/src/diagnostics.rs6
2 files changed, 10 insertions, 3 deletions
diff --git a/crates/hir/src/db.rs b/crates/hir/src/db.rs
index ffc8155b9..19898f683 100644
--- a/crates/hir/src/db.rs
+++ b/crates/hir/src/db.rs
@@ -1,5 +1,8 @@
1//! FIXME: write short doc here 1//! Re-exports various subcrates databases so that the calling code can depend
2 2//! only on `hir`. This breaks abstraction boundary a bit, it would be cool if
3//! we didn't do that.
4//!
5//! But we need this for at least LRU caching at the query level.
3pub use hir_def::db::*; 6pub use hir_def::db::*;
4pub use hir_expand::db::{ 7pub use hir_expand::db::{
5 AstDatabase, AstDatabaseStorage, AstIdMapQuery, HygieneFrameQuery, InternMacroQuery, 8 AstDatabase, AstDatabaseStorage, AstIdMapQuery, HygieneFrameQuery, InternMacroQuery,
diff --git a/crates/hir/src/diagnostics.rs b/crates/hir/src/diagnostics.rs
index b1ebba516..414c3f35e 100644
--- a/crates/hir/src/diagnostics.rs
+++ b/crates/hir/src/diagnostics.rs
@@ -1,4 +1,8 @@
1//! FIXME: write short doc here 1//! Re-export diagnostics such that clients of `hir` don't have to depend on
2//! low-level crates.
3//!
4//! This probably isn't the best way to do this -- ideally, diagnistics should
5//! be expressed in terms of hir types themselves.
2pub use hir_def::diagnostics::{ 6pub use hir_def::diagnostics::{
3 InactiveCode, UnresolvedMacroCall, UnresolvedModule, UnresolvedProcMacro, 7 InactiveCode, UnresolvedMacroCall, UnresolvedModule, UnresolvedProcMacro,
4}; 8};