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.
|
2023-11-25 16:10:18 +00:00
|
|
|
pub use hir_def::db::{
|
2024-04-17 16:44:50 +00:00
|
|
|
AttrsQuery, BlockDefMapQuery, BlockItemTreeQuery, BodyQuery, BodyWithSourceMapQuery,
|
|
|
|
ConstDataQuery, ConstVisibilityQuery, CrateDefMapQuery, CrateLangItemsQuery,
|
|
|
|
CrateNotableTraitsQuery, CrateSupportsNoStdQuery, DefDatabase, DefDatabaseStorage,
|
|
|
|
EnumDataQuery, EnumVariantDataWithDiagnosticsQuery, ExprScopesQuery, ExternCrateDeclDataQuery,
|
|
|
|
FieldVisibilitiesQuery, FieldsAttrsQuery, FieldsAttrsSourceMapQuery, FileItemTreeQuery,
|
|
|
|
FunctionDataQuery, FunctionVisibilityQuery, GenericParamsQuery, ImplDataWithDiagnosticsQuery,
|
|
|
|
ImportMapQuery, InternAnonymousConstQuery, InternBlockQuery, InternConstQuery, InternDatabase,
|
|
|
|
InternDatabaseStorage, InternEnumQuery, InternExternBlockQuery, InternExternCrateQuery,
|
|
|
|
InternFunctionQuery, InternImplQuery, InternInTypeConstQuery, InternMacro2Query,
|
|
|
|
InternMacroRulesQuery, InternProcMacroQuery, InternStaticQuery, InternStructQuery,
|
|
|
|
InternTraitAliasQuery, InternTraitQuery, InternTypeAliasQuery, InternUnionQuery,
|
|
|
|
InternUseQuery, LangItemQuery, Macro2DataQuery, MacroRulesDataQuery, ProcMacroDataQuery,
|
|
|
|
StaticDataQuery, StructDataWithDiagnosticsQuery, TraitAliasDataQuery,
|
|
|
|
TraitDataWithDiagnosticsQuery, TypeAliasDataQuery, UnionDataWithDiagnosticsQuery,
|
2023-11-25 16:10:18 +00:00
|
|
|
};
|
2019-10-29 11:59:55 +00:00
|
|
|
pub use hir_expand::db::{
|
2023-07-10 14:23:29 +00:00
|
|
|
AstIdMapQuery, DeclMacroExpanderQuery, ExpandDatabase, ExpandDatabaseStorage,
|
2023-12-01 13:58:57 +00:00
|
|
|
ExpandProcMacroQuery, InternMacroCallQuery, InternSyntaxContextQuery, MacroArgQuery,
|
2023-12-18 11:09:54 +00:00
|
|
|
ParseMacroExpansionErrorQuery, ParseMacroExpansionQuery, ProcMacrosQuery, RealSpanMapQuery,
|
2018-11-28 00:42:26 +00:00
|
|
|
};
|
2024-04-17 16:44:50 +00:00
|
|
|
pub use hir_ty::db::{
|
|
|
|
AdtDatumQuery, AdtVarianceQuery, AssociatedTyDataQuery, AssociatedTyValueQuery, BorrowckQuery,
|
|
|
|
CallableItemSignatureQuery, ConstEvalDiscriminantQuery, ConstEvalQuery, ConstEvalStaticQuery,
|
|
|
|
ConstParamTyQuery, FieldTypesQuery, FnDefDatumQuery, FnDefVarianceQuery, GenericDefaultsQuery,
|
|
|
|
GenericPredicatesForParamQuery, GenericPredicatesQuery, HirDatabase, HirDatabaseStorage,
|
|
|
|
ImplDatumQuery, ImplSelfTyQuery, ImplTraitQuery, IncoherentInherentImplCratesQuery,
|
|
|
|
InherentImplsInBlockQuery, InherentImplsInCrateQuery, InternCallableDefQuery,
|
|
|
|
InternClosureQuery, InternCoroutineQuery, InternImplTraitIdQuery, InternLifetimeParamIdQuery,
|
|
|
|
InternTypeOrConstParamIdQuery, LayoutOfAdtQuery, MirBodyQuery, ProgramClausesForChalkEnvQuery,
|
|
|
|
ReturnTypeImplTraitsQuery, TargetDataLayoutQuery, TraitDatumQuery, TraitEnvironmentQuery,
|
|
|
|
TraitImplsInBlockQuery, TraitImplsInCrateQuery, TraitImplsInDepsQuery, TyQuery, ValueTyQuery,
|
|
|
|
};
|