From b82db684003b817d47c1bc8c0d3c6afc88be2663 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 17 Feb 2019 17:29:51 +0100 Subject: Handle tuple structs / enum variants properly in type inference --- crates/ra_hir/src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/db.rs') 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::{ adt::{StructData, EnumData}, impl_block::{ModuleImplBlocks, ImplSourceMap}, generics::{GenericParams, GenericDef}, - ids::SourceFileItemId, + ids::SourceFileItemId, nameres::Namespace }; #[salsa::query_group(PersistentHirDatabaseStorage)] @@ -88,7 +88,7 @@ pub trait HirDatabase: PersistentHirDatabase { fn infer(&self, func: Function) -> Arc; #[salsa::invoke(crate::ty::type_for_def)] - fn type_for_def(&self, def: TypableDef) -> Ty; + fn type_for_def(&self, def: TypableDef, ns: Namespace) -> Ty; #[salsa::invoke(crate::ty::type_for_field)] fn type_for_field(&self, field: StructField) -> Ty; -- cgit v1.2.3