]> git.lizzy.rs Git - rust.git/blob - crates/hir/src/db.rs
Rollup merge of #100643 - TaKO8Ki:point-at-type-parameter-shadowing-another-type...
[rust.git] / crates / hir / src / db.rs
1 //! Re-exports various subcrates databases so that the calling code can depend
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.
6 pub use hir_def::db::*;
7 pub use hir_expand::db::{
8     AstDatabase, AstDatabaseStorage, AstIdMapQuery, HygieneFrameQuery, InternMacroCallQuery,
9     MacroArgTextQuery, MacroDefQuery, MacroExpandQuery, ParseMacroExpansionQuery,
10 };
11 pub use hir_ty::db::*;
12
13 #[test]
14 fn hir_database_is_object_safe() {
15     fn _assert_object_safe(_: &dyn HirDatabase) {}
16 }