diff options
Diffstat (limited to 'crates/ra_ide_db')
-rw-r--r-- | crates/ra_ide_db/src/defs.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/defs.rs b/crates/ra_ide_db/src/defs.rs index f990e3bb9..c74daff38 100644 --- a/crates/ra_ide_db/src/defs.rs +++ b/crates/ra_ide_db/src/defs.rs | |||
@@ -52,6 +52,7 @@ impl Definition { | |||
52 | let parent = id.parent_enum(db); | 52 | let parent = id.parent_enum(db); |
53 | module?.visibility_of(db, &ModuleDef::Adt(Adt::Enum(parent))) | 53 | module?.visibility_of(db, &ModuleDef::Adt(Adt::Enum(parent))) |
54 | } | 54 | } |
55 | ModuleDef::Function(f) => Some(f.visibility(db)), | ||
55 | _ => module?.visibility_of(db, def), | 56 | _ => module?.visibility_of(db, def), |
56 | }, | 57 | }, |
57 | Definition::SelfType(_) => None, | 58 | Definition::SelfType(_) => None, |