aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir/src/code_model/src.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir/src/code_model/src.rs b/crates/ra_hir/src/code_model/src.rs
index 7d8abb39e..76adc7869 100644
--- a/crates/ra_hir/src/code_model/src.rs
+++ b/crates/ra_hir/src/code_model/src.rs
@@ -74,21 +74,18 @@ impl HasSource for EnumVariant {
74} 74}
75impl HasSource for Function { 75impl HasSource for Function {
76 type Ast = TreeArc<ast::FnDef>; 76 type Ast = TreeArc<ast::FnDef>;
77
78 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::FnDef>> { 77 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::FnDef>> {
79 self.id.source(db) 78 self.id.source(db)
80 } 79 }
81} 80}
82impl HasSource for Const { 81impl HasSource for Const {
83 type Ast = TreeArc<ast::ConstDef>; 82 type Ast = TreeArc<ast::ConstDef>;
84
85 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::ConstDef>> { 83 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::ConstDef>> {
86 self.id.source(db) 84 self.id.source(db)
87 } 85 }
88} 86}
89impl HasSource for Static { 87impl HasSource for Static {
90 type Ast = TreeArc<ast::StaticDef>; 88 type Ast = TreeArc<ast::StaticDef>;
91
92 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::StaticDef>> { 89 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::StaticDef>> {
93 self.id.source(db) 90 self.id.source(db)
94 } 91 }
@@ -107,7 +104,6 @@ impl HasSource for TypeAlias {
107} 104}
108impl HasSource for MacroDef { 105impl HasSource for MacroDef {
109 type Ast = TreeArc<ast::MacroCall>; 106 type Ast = TreeArc<ast::MacroCall>;
110
111 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::MacroCall>> { 107 fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::MacroCall>> {
112 Source { file_id: self.id.0.file_id(), ast: self.id.0.to_node(db) } 108 Source { file_id: self.id.0.file_id(), ast: self.id.0.to_node(db) }
113 } 109 }