diff options
Diffstat (limited to 'crates/ra_ide_db')
-rw-r--r-- | crates/ra_ide_db/src/defs.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/defs.rs b/crates/ra_ide_db/src/defs.rs index e10e72f71..484755158 100644 --- a/crates/ra_ide_db/src/defs.rs +++ b/crates/ra_ide_db/src/defs.rs | |||
@@ -90,6 +90,10 @@ pub fn classify_name(sema: &Semantics<RootDatabase>, name: &ast::Name) -> Option | |||
90 | let def: hir::Struct = sema.to_def(&it)?; | 90 | let def: hir::Struct = sema.to_def(&it)?; |
91 | Some(from_module_def(def.into())) | 91 | Some(from_module_def(def.into())) |
92 | }, | 92 | }, |
93 | ast::UnionDef(it) => { | ||
94 | let def: hir::Union = sema.to_def(&it)?; | ||
95 | Some(from_module_def(def.into())) | ||
96 | }, | ||
93 | ast::EnumDef(it) => { | 97 | ast::EnumDef(it) => { |
94 | let def: hir::Enum = sema.to_def(&it)?; | 98 | let def: hir::Enum = sema.to_def(&it)?; |
95 | Some(from_module_def(def.into())) | 99 | Some(from_module_def(def.into())) |