diff options
author | Florian Diebold <[email protected]> | 2018-12-29 19:27:13 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2018-12-29 19:27:13 +0000 |
commit | 4142792d1fd21a512d1dd37d5822ac2ba470c547 (patch) | |
tree | d624a2b4ad749517f7946f28ad1d2874867e2032 /crates/ra_hir/src/db.rs | |
parent | 4a3d6aa26a1c71dadc91f37f9d5f8662b51c138a (diff) |
Add more docs in ty.rs
Also get rid of the indirection through query_definitions for the type-related
queries.
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
36 | 36 | ||
37 | fn infer(def_id: DefId) -> Cancelable<Arc<InferenceResult>> { | 37 | fn infer(def_id: DefId) -> Cancelable<Arc<InferenceResult>> { |
38 | type InferQuery; | 38 | type InferQuery; |
39 | use fn query_definitions::infer; | 39 | use fn crate::ty::infer; |
40 | } | 40 | } |
41 | 41 | ||
42 | fn type_for_def(def_id: DefId) -> Cancelable<Ty> { | 42 | fn type_for_def(def_id: DefId) -> Cancelable<Ty> { |
43 | type TypeForDefQuery; | 43 | type TypeForDefQuery; |
44 | use fn query_definitions::type_for_def; | 44 | use fn crate::ty::type_for_def; |
45 | } | 45 | } |
46 | 46 | ||
47 | fn type_for_field(def_id: DefId, field: Name) -> Cancelable<Ty> { | 47 | fn type_for_field(def_id: DefId, field: Name) -> Cancelable<Ty> { |
48 | type TypeForFieldQuery; | 48 | type TypeForFieldQuery; |
49 | use fn query_definitions::type_for_field; | 49 | use fn crate::ty::type_for_field; |
50 | } | 50 | } |
51 | 51 | ||
52 | fn file_items(file_id: FileId) -> Arc<SourceFileItems> { | 52 | fn file_items(file_id: FileId) -> Arc<SourceFileItems> { |