diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-28 18:35:52 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-28 18:35:52 +0000 |
commit | 751616f062b07f5dee2921f69886bd1a5b1234aa (patch) | |
tree | 616bcd980ac69eb5070c1e7a6d90ebee71cb7348 /crates/ra_hir/src/query_definitions.rs | |
parent | 10e687f281e4850ae258d5dae84dee871e24e8ed (diff) | |
parent | 792899587647f5aa0293c2588173677682187c0a (diff) |
Merge #352
352: Macro extend selection r=matklad a=matklad
and a bunch of unrelated stuff
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/query_definitions.rs')
-rw-r--r-- | crates/ra_hir/src/query_definitions.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_hir/src/query_definitions.rs b/crates/ra_hir/src/query_definitions.rs index 56e3f7e9d..016d86ee6 100644 --- a/crates/ra_hir/src/query_definitions.rs +++ b/crates/ra_hir/src/query_definitions.rs | |||
@@ -5,7 +5,7 @@ use std::{ | |||
5 | 5 | ||
6 | use rustc_hash::FxHashMap; | 6 | use rustc_hash::FxHashMap; |
7 | use ra_syntax::{ | 7 | use ra_syntax::{ |
8 | AstNode, SyntaxNode, SmolStr, | 8 | AstNode, SyntaxNode, |
9 | ast::{self, NameOwner, ModuleItemOwner} | 9 | ast::{self, NameOwner, ModuleItemOwner} |
10 | }; | 10 | }; |
11 | use ra_db::{SourceRootId, FileId, Cancelable,}; | 11 | use ra_db::{SourceRootId, FileId, Cancelable,}; |
@@ -39,11 +39,7 @@ pub(super) fn type_for_def(db: &impl HirDatabase, def_id: DefId) -> Cancelable<T | |||
39 | ty::type_for_def(db, def_id) | 39 | ty::type_for_def(db, def_id) |
40 | } | 40 | } |
41 | 41 | ||
42 | pub(super) fn type_for_field( | 42 | pub(super) fn type_for_field(db: &impl HirDatabase, def_id: DefId, field: Name) -> Cancelable<Ty> { |
43 | db: &impl HirDatabase, | ||
44 | def_id: DefId, | ||
45 | field: SmolStr, | ||
46 | ) -> Cancelable<Ty> { | ||
47 | ty::type_for_field(db, def_id, field) | 43 | ty::type_for_field(db, def_id, field) |
48 | } | 44 | } |
49 | 45 | ||