aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/code_model.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 9612c86da..488f74cfb 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -1053,8 +1053,8 @@ impl<T: Into<AttrDef> + Copy> Docs for T {
1053 1053
1054pub trait HasVisibility { 1054pub trait HasVisibility {
1055 fn visibility(&self, db: &impl HirDatabase) -> Visibility; 1055 fn visibility(&self, db: &impl HirDatabase) -> Visibility;
1056 fn visible_from(&self, db: &impl HirDatabase, module: Module) -> bool { 1056 fn is_visible_from(&self, db: &impl HirDatabase, module: Module) -> bool {
1057 let vis = self.visibility(db); 1057 let vis = self.visibility(db);
1058 vis.visible_from(db, module.id) 1058 vis.is_visible_from(db, module.id)
1059 } 1059 }
1060} 1060}