diff options
-rw-r--r-- | crates/ra_ide_db/src/defs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/defs.rs b/crates/ra_ide_db/src/defs.rs index c74daff38..bddfef240 100644 --- a/crates/ra_ide_db/src/defs.rs +++ b/crates/ra_ide_db/src/defs.rs | |||
@@ -53,6 +53,8 @@ impl Definition { | |||
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 | ModuleDef::Function(f) => Some(f.visibility(db)), |
56 | ModuleDef::Const(c) => Some(c.visibility(db)), | ||
57 | ModuleDef::TypeAlias(t) => Some(t.visibility(db)), | ||
56 | _ => module?.visibility_of(db, def), | 58 | _ => module?.visibility_of(db, def), |
57 | }, | 59 | }, |
58 | Definition::SelfType(_) => None, | 60 | Definition::SelfType(_) => None, |