diff options
author | Aleksey Kladov <[email protected]> | 2019-11-26 11:29:12 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-26 11:29:12 +0000 |
commit | a443b5033c2e95ee58bf086f7093ddc610d4f78f (patch) | |
tree | 5f05620adde03f7cb521b2f59aad6b2470e6272e /crates/ra_ide_api/src | |
parent | e5eadb339039e21718d382c0b3d02a4bf053b3f4 (diff) |
Id-ify Ty::Adt
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/references/name_definition.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/references/name_definition.rs b/crates/ra_ide_api/src/references/name_definition.rs index aca23f79e..cf12db066 100644 --- a/crates/ra_ide_api/src/references/name_definition.rs +++ b/crates/ra_ide_api/src/references/name_definition.rs | |||
@@ -46,6 +46,7 @@ pub(super) fn from_struct_field(db: &RootDatabase, field: StructField) -> NameDe | |||
46 | let container = parent.module(db); | 46 | let container = parent.module(db); |
47 | let visibility = match parent { | 47 | let visibility = match parent { |
48 | VariantDef::Struct(s) => s.source(db).value.visibility(), | 48 | VariantDef::Struct(s) => s.source(db).value.visibility(), |
49 | VariantDef::Union(e) => e.source(db).value.visibility(), | ||
49 | VariantDef::EnumVariant(e) => e.source(db).value.parent_enum().visibility(), | 50 | VariantDef::EnumVariant(e) => e.source(db).value.parent_enum().visibility(), |
50 | }; | 51 | }; |
51 | NameDefinition { kind, container, visibility } | 52 | NameDefinition { kind, container, visibility } |