2021-05-22 08:53:47 -05: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 18:29:59 -05:00
|
|
|
pub use hir_def::db::*;
|
2019-10-29 06:59:55 -05:00
|
|
|
pub use hir_expand::db::{
|
2023-03-13 10:33:52 -05:00
|
|
|
AstIdMapQuery, ExpandDatabase, ExpandDatabaseStorage, ExpandProcMacroQuery, HygieneFrameQuery,
|
2023-04-16 11:29:42 -05:00
|
|
|
InternMacroCallQuery, MacroArgTextQuery, MacroDefQuery, MacroExpandQuery,
|
2023-04-16 16:12:25 -05:00
|
|
|
ParseMacroExpansionErrorQuery, ParseMacroExpansionQuery,
|
2018-11-27 18:42:26 -06:00
|
|
|
};
|
2020-07-22 11:44:40 -05:00
|
|
|
pub use hir_ty::db::*;
|
2019-02-03 13:15:31 -06:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn hir_database_is_object_safe() {
|
|
|
|
fn _assert_object_safe(_: &dyn HirDatabase) {}
|
|
|
|
}
|