From 4142792d1fd21a512d1dd37d5822ac2ba470c547 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 29 Dec 2018 20:27:13 +0100 Subject: Add more docs in ty.rs Also get rid of the indirection through query_definitions for the type-related queries. --- crates/ra_hir/src/db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 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 b41a7429a..5a8ca3b47 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs @@ -36,17 +36,17 @@ pub trait HirDatabase: SyntaxDatabase fn infer(def_id: DefId) -> Cancelable> { type InferQuery; - use fn query_definitions::infer; + use fn crate::ty::infer; } fn type_for_def(def_id: DefId) -> Cancelable { type TypeForDefQuery; - use fn query_definitions::type_for_def; + use fn crate::ty::type_for_def; } fn type_for_field(def_id: DefId, field: Name) -> Cancelable { type TypeForFieldQuery; - use fn query_definitions::type_for_field; + use fn crate::ty::type_for_field; } fn file_items(file_id: FileId) -> Arc { -- cgit v1.2.3