From dddbac68779d068cabfa511bed4ba105bc43d194 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 27 Dec 2018 23:51:44 +0300 Subject: remove FnId --- crates/ra_hir/src/db.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 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 e7f9afa77..ba43a4502 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs @@ -3,7 +3,6 @@ use std::sync::Arc; use ra_syntax::{ SmolStr, SyntaxNode, - ast::FnDefNode, }; use ra_db::{SourceRootId, LocationIntener, SyntaxDatabase, FileId, Cancelable}; @@ -12,7 +11,6 @@ use crate::{ SourceFileItems, SourceItemId, query_definitions, FnScopes, - function::FnId, module::{ModuleId, ModuleTree, ModuleSource, nameres::{ItemMap, InputModuleItems}}, ty::{InferenceResult, Ty}, @@ -24,14 +22,10 @@ salsa::query_group! { pub trait HirDatabase: SyntaxDatabase + AsRef> { - fn fn_scopes(fn_id: FnId) -> Arc { + fn fn_scopes(def_id: DefId) -> Arc { type FnScopesQuery; use fn query_definitions::fn_scopes; } - fn fn_syntax(fn_id: FnId) -> FnDefNode { - type FnSyntaxQuery; - use fn query_definitions::fn_syntax; - } fn struct_data(def_id: DefId) -> Cancelable> { type StructDataQuery; @@ -43,7 +37,7 @@ pub trait HirDatabase: SyntaxDatabase use fn query_definitions::enum_data; } - fn infer(fn_id: FnId) -> Cancelable> { + fn infer(def_id: DefId) -> Cancelable> { type InferQuery; use fn query_definitions::infer; } -- cgit v1.2.3