File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -79,29 +79,6 @@ impl Definition {
79
79
} ;
80
80
Some ( name)
81
81
}
82
-
83
- pub fn docs ( & self , db : & RootDatabase ) -> Option < hir:: Documentation > {
84
- match self {
85
- Definition :: Macro ( it) => it. docs ( db) ,
86
- Definition :: Field ( it) => it. docs ( db) ,
87
- Definition :: ModuleDef ( def) => match def {
88
- hir:: ModuleDef :: Module ( it) => it. docs ( db) ,
89
- hir:: ModuleDef :: Function ( it) => it. docs ( db) ,
90
- hir:: ModuleDef :: Adt ( def) => match def {
91
- hir:: Adt :: Struct ( it) => it. docs ( db) ,
92
- hir:: Adt :: Union ( it) => it. docs ( db) ,
93
- hir:: Adt :: Enum ( it) => it. docs ( db) ,
94
- } ,
95
- hir:: ModuleDef :: Variant ( it) => it. docs ( db) ,
96
- hir:: ModuleDef :: Const ( it) => it. docs ( db) ,
97
- hir:: ModuleDef :: Static ( it) => it. docs ( db) ,
98
- hir:: ModuleDef :: Trait ( it) => it. docs ( db) ,
99
- hir:: ModuleDef :: TypeAlias ( it) => it. docs ( db) ,
100
- hir:: ModuleDef :: BuiltinType ( _) => None ,
101
- } ,
102
- _ => None ,
103
- }
104
- }
105
82
}
106
83
107
84
#[ derive( Debug ) ]
You can’t perform that action at this time.
0 commit comments