aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
authorFedor Sakharov <[email protected]>2020-05-07 14:30:20 +0100
committerFedor Sakharov <[email protected]>2020-05-07 14:31:51 +0100
commit210f0cbd27b0621c47e15c74bbb16ab47a642999 (patch)
tree29254a5781765ac930e413bfee99f8d6abca1148 /crates/ra_hir/src
parentbd9f1f7eb78843ddd91d259a04e988b0681a5db4 (diff)
Remove HasVisibility implementation
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/code_model.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 7eba0b233..5f480c304 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -474,13 +474,6 @@ impl EnumVariant {
474 } 474 }
475} 475}
476 476
477impl HasVisibility for EnumVariant {
478 fn visibility(&self, db: &dyn HirDatabase) -> Visibility {
479 let visibility = &db.enum_data(self.parent.id).visibility;
480 visibility.resolve(db.upcast(), &self.parent.id.resolver(db.upcast()))
481 }
482}
483
484/// A Data Type 477/// A Data Type
485#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] 478#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
486pub enum Adt { 479pub enum Adt {