rust-analyzer/crates/hir/src/db.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
599 B
Rust
Raw Normal View History

2021-05-22 13:53:47 +00:00
//! Re-exports various subcrates databases so that the calling code can depend
//! only on `hir`. This breaks abstraction boundary a bit, it would be cool if
//! we didn't do that.
//!
//! But we need this for at least LRU caching at the query level.
2021-04-03 23:29:59 +00:00
pub use hir_def::db::*;
2019-10-29 11:59:55 +00:00
pub use hir_expand::db::{
AstDatabase, AstDatabaseStorage, AstIdMapQuery, HygieneFrameQuery, InternMacroCallQuery,
2021-05-19 18:19:08 +00:00
MacroArgTextQuery, MacroDefQuery, MacroExpandQuery, ParseMacroExpansionQuery,
2018-11-28 00:42:26 +00:00
};
pub use hir_ty::db::*;
2019-02-03 19:15:31 +00:00
#[test]
fn hir_database_is_object_safe() {
fn _assert_object_safe(_: &dyn HirDatabase) {}
}