aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r--crates/ra_hir/src/ty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index 9a1a90eed..6d6150096 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -693,7 +693,10 @@ impl From<ModuleDef> for Option<TypableDef> {
693 ModuleDef::Struct(s) => s.into(), 693 ModuleDef::Struct(s) => s.into(),
694 ModuleDef::Enum(e) => e.into(), 694 ModuleDef::Enum(e) => e.into(),
695 ModuleDef::EnumVariant(v) => v.into(), 695 ModuleDef::EnumVariant(v) => v.into(),
696 ModuleDef::Def(_) | ModuleDef::Module(_) => return None, 696 ModuleDef::Const(_)
697 | ModuleDef::Static(_)
698 | ModuleDef::Def(_)
699 | ModuleDef::Module(_) => return None,
697 }; 700 };
698 Some(res) 701 Some(res)
699 } 702 }