From 56bc874f1d14922686b26afc8793b7e57a652990 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 30 Oct 2019 09:29:55 +0300 Subject: move ty interning to ty --- crates/ra_hir/src/db.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 6d34c671d..da8ae6ef4 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs @@ -49,12 +49,6 @@ pub trait InternDatabase: SourceDatabase { fn intern_trait(&self, loc: ids::ItemLoc) -> ids::TraitId; #[salsa::interned] fn intern_type_alias(&self, loc: ids::ItemLoc) -> ids::TypeAliasId; - - // Interned IDs for Chalk integration - #[salsa::interned] - fn intern_type_ctor(&self, type_ctor: TypeCtor) -> ids::TypeCtorId; - #[salsa::interned] - fn intern_impl(&self, impl_: Impl) -> ids::GlobalImplId; } // This database uses `AstDatabase` internally, @@ -176,6 +170,12 @@ pub trait HirDatabase: DefDatabase + AstDatabase { #[salsa::invoke(crate::ty::traits::trait_solver_query)] fn trait_solver(&self, krate: Crate) -> crate::ty::traits::TraitSolver; + // Interned IDs for Chalk integration + #[salsa::interned] + fn intern_type_ctor(&self, type_ctor: TypeCtor) -> ids::TypeCtorId; + #[salsa::interned] + fn intern_impl(&self, impl_: Impl) -> ids::GlobalImplId; + #[salsa::invoke(crate::ty::traits::chalk::associated_ty_data_query)] fn associated_ty_data(&self, id: chalk_ir::TypeId) -> Arc; -- cgit v1.2.3