diff options
author | Aleksey Kladov <[email protected]> | 2019-09-12 22:34:52 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-09-12 22:34:52 +0100 |
commit | 114a1b878e95c20490af574550ea0825b7a8f9d1 (patch) | |
tree | 3fe7cb05dc4d92d19ecbb87bfafc4a9ff202153e /crates/ra_ide_api/src/name_ref_kind.rs | |
parent | bcf30d389c3744ab517372431eb7e1e1dfcc50df (diff) |
rename AdtDef -> Adt
Diffstat (limited to 'crates/ra_ide_api/src/name_ref_kind.rs')
-rw-r--r-- | crates/ra_ide_api/src/name_ref_kind.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/name_ref_kind.rs b/crates/ra_ide_api/src/name_ref_kind.rs index 34a8bcc36..6c2a7b260 100644 --- a/crates/ra_ide_api/src/name_ref_kind.rs +++ b/crates/ra_ide_api/src/name_ref_kind.rs | |||
@@ -60,7 +60,7 @@ pub(crate) fn classify_name_ref( | |||
60 | let record_lit = field_expr.syntax().ancestors().find_map(ast::RecordLit::cast); | 60 | let record_lit = field_expr.syntax().ancestors().find_map(ast::RecordLit::cast); |
61 | 61 | ||
62 | if let Some(ty) = record_lit.and_then(|lit| analyzer.type_of(db, &lit.into())) { | 62 | if let Some(ty) = record_lit.and_then(|lit| analyzer.type_of(db, &lit.into())) { |
63 | if let Some((hir::AdtDef::Struct(s), _)) = ty.as_adt() { | 63 | if let Some((hir::Adt::Struct(s), _)) = ty.as_adt() { |
64 | let hir_path = hir::Path::from_name_ref(name_ref); | 64 | let hir_path = hir::Path::from_name_ref(name_ref); |
65 | let hir_name = hir_path.as_ident().unwrap(); | 65 | let hir_name = hir_path.as_ident().unwrap(); |
66 | 66 | ||