aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r--crates/ra_hir/src/db.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs
index 740a7be7a..fc0ee068c 100644
--- a/crates/ra_hir/src/db.rs
+++ b/crates/ra_hir/src/db.rs
@@ -15,7 +15,7 @@ use crate::{
15 adt::{StructData, EnumData}, 15 adt::{StructData, EnumData},
16 impl_block::{ModuleImplBlocks, ImplSourceMap}, 16 impl_block::{ModuleImplBlocks, ImplSourceMap},
17 generics::{GenericParams, GenericDef}, 17 generics::{GenericParams, GenericDef},
18 ids::SourceFileItemId, 18 ids::SourceFileItemId, nameres::Namespace
19}; 19};
20 20
21#[salsa::query_group(PersistentHirDatabaseStorage)] 21#[salsa::query_group(PersistentHirDatabaseStorage)]
@@ -88,7 +88,7 @@ pub trait HirDatabase: PersistentHirDatabase {
88 fn infer(&self, func: Function) -> Arc<InferenceResult>; 88 fn infer(&self, func: Function) -> Arc<InferenceResult>;
89 89
90 #[salsa::invoke(crate::ty::type_for_def)] 90 #[salsa::invoke(crate::ty::type_for_def)]
91 fn type_for_def(&self, def: TypableDef) -> Ty; 91 fn type_for_def(&self, def: TypableDef, ns: Namespace) -> Ty;
92 92
93 #[salsa::invoke(crate::ty::type_for_field)] 93 #[salsa::invoke(crate::ty::type_for_field)]
94 fn type_for_field(&self, field: StructField) -> Ty; 94 fn type_for_field(&self, field: StructField) -> Ty;