mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-07 18:58:51 +00:00
16 lines
599 B
Rust
16 lines
599 B
Rust
//! 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.
|
|
pub use hir_def::db::*;
|
|
pub use hir_expand::db::{
|
|
AstDatabase, AstDatabaseStorage, AstIdMapQuery, HygieneFrameQuery, InternMacroCallQuery,
|
|
MacroArgTextQuery, MacroDefQuery, MacroExpandQuery, ParseMacroExpansionQuery,
|
|
};
|
|
pub use hir_ty::db::*;
|
|
|
|
#[test]
|
|
fn hir_database_is_object_safe() {
|
|
fn _assert_object_safe(_: &dyn HirDatabase) {}
|
|
}
|