aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-22 14:54:13 +0100
committerGitHub <[email protected]>2021-05-22 14:54:13 +0100
commitd56e52402eedbd738b5161cd1e5a8c152cb65e21 (patch)
treec88222888e201b2173cd4a15673bd879cb88dd95 /crates/hir
parent542337eca49986d785db2318bfe9c70809d4a229 (diff)
parent188b0f96f98feaa0771f941343887c46113c8ced (diff)
Merge #8922
8922: Add more docs r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/hir')
-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};