2021-05-22 16:53:47 +03: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-04 01:29:59 +02:00
|
|
|
pub use hir_def::db::*;
|
2019-10-29 14:59:55 +03:00
|
|
|
pub use hir_expand::db::{
|
2021-05-19 20:19:08 +02:00
|
|
|
AstDatabase, AstDatabaseStorage, AstIdMapQuery, HygieneFrameQuery, InternMacroQuery,
|
|
|
|
MacroArgTextQuery, MacroDefQuery, MacroExpandQuery, ParseMacroExpansionQuery,
|
2018-11-28 03:42:26 +03:00
|
|
|
};
|
2020-07-22 18:44:40 +02:00
|
|
|
pub use hir_ty::db::*;
|
2019-02-03 22:15:31 +03:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn hir_database_is_object_safe() {
|
|
|
|
fn _assert_object_safe(_: &dyn HirDatabase) {}
|
|
|
|
}
|