diff options
author | Aleksey Kladov <[email protected]> | 2019-01-11 18:02:12 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-11 18:02:12 +0000 |
commit | f193fbcbae0783953cfaa88aaec6a8d4e1255007 (patch) | |
tree | c57734dc82350c2d853f557a40f7aafdc7470bdf /crates/ra_hir/src/ty.rs | |
parent | 19136cde000c2c227e79bf44febde990fe265cb7 (diff) |
actually produce missing def kinds
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r-- | crates/ra_hir/src/ty.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs index 18c41a015..0c24a0652 100644 --- a/crates/ra_hir/src/ty.rs +++ b/crates/ra_hir/src/ty.rs | |||
@@ -470,8 +470,12 @@ pub(super) fn type_for_def(db: &impl HirDatabase, def_id: DefId) -> Cancelable<T | |||
470 | Def::Struct(s) => type_for_struct(db, s), | 470 | Def::Struct(s) => type_for_struct(db, s), |
471 | Def::Enum(e) => type_for_enum(db, e), | 471 | Def::Enum(e) => type_for_enum(db, e), |
472 | Def::EnumVariant(ev) => type_for_enum_variant(db, ev), | 472 | Def::EnumVariant(ev) => type_for_enum_variant(db, ev), |
473 | Def::Item => { | 473 | _ => { |
474 | log::debug!("trying to get type for item of unknown type {:?}", def_id); | 474 | log::debug!( |
475 | "trying to get type for item of unknown type {:?} {:?}", | ||
476 | def_id, | ||
477 | def | ||
478 | ); | ||
475 | Ok(Ty::Unknown) | 479 | Ok(Ty::Unknown) |
476 | } | 480 | } |
477 | } | 481 | } |