diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-08 12:59:12 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-08 12:59:12 +0100 |
commit | bb55111c209a9d3a6249cab35308a506b7f22d53 (patch) | |
tree | 380c082f86c927b72c0bbda0ac2d9383c15df949 /crates/ra_ide_api/src/name_ref_kind.rs | |
parent | 2a6b363b44e335af5f26ac503461ef15cca82ace (diff) | |
parent | ac64967872507bb921ad69fc50ac3475c1fc26f8 (diff) |
Merge #1385
1385: Refactor and queryfy documentation handling in HIR r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/name_ref_kind.rs')
-rw-r--r-- | crates/ra_ide_api/src/name_ref_kind.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/name_ref_kind.rs b/crates/ra_ide_api/src/name_ref_kind.rs index 90972bc58..000036db4 100644 --- a/crates/ra_ide_api/src/name_ref_kind.rs +++ b/crates/ra_ide_api/src/name_ref_kind.rs | |||
@@ -1,11 +1,12 @@ | |||
1 | use ra_syntax::{AstNode, AstPtr, ast}; | 1 | use ra_syntax::{AstNode, AstPtr, ast}; |
2 | use hir::Either; | 2 | use hir::Either; |
3 | use crate::db::RootDatabase; | ||
4 | use test_utils::tested_by; | 3 | use test_utils::tested_by; |
5 | 4 | ||
5 | use crate::db::RootDatabase; | ||
6 | |||
6 | pub enum NameRefKind { | 7 | pub enum NameRefKind { |
7 | Method(hir::Function), | 8 | Method(hir::Function), |
8 | Macro(hir::MacroByExampleDef), | 9 | Macro(hir::MacroDef), |
9 | FieldAccess(hir::StructField), | 10 | FieldAccess(hir::StructField), |
10 | AssocItem(hir::ImplItem), | 11 | AssocItem(hir::ImplItem), |
11 | Def(hir::ModuleDef), | 12 | Def(hir::ModuleDef), |