aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-11-26 11:32:09 +0000
committerGitHub <[email protected]>2019-11-26 11:32:09 +0000
commit6e36eadd261b1f7765bef32ec74899003c5c3517 (patch)
tree5f05620adde03f7cb521b2f59aad6b2470e6272e /crates/ra_ide_api/src
parent500e022f7decbee29a693b0f0dd2f63789a99e5a (diff)
parenta443b5033c2e95ee58bf086f7093ddc610d4f78f (diff)
Merge #2409
2409: Id-ify Ty::Adt r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/references/name_definition.rs1
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 }