diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-20 15:45:22 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-20 15:45:22 +0000 |
commit | c51dcb1c4bdd71f9f17de508bd0d47e3c06ae1d5 (patch) | |
tree | 7e96d773620a3b03254d00386711cdc7c909e3ee /crates/ra_hir/src/code_model | |
parent | b7a36b54431ca5b746af53549a1b6e142570c7f4 (diff) | |
parent | 111891dc2dc1d2c7ea87144e8e3ddefe23fc7b6d (diff) |
Merge #2327
2327: Move constants to new ID r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/code_model')
-rw-r--r-- | crates/ra_hir/src/code_model/src.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model/src.rs b/crates/ra_hir/src/code_model/src.rs index 91cab7414..354d2c98f 100644 --- a/crates/ra_hir/src/code_model/src.rs +++ b/crates/ra_hir/src/code_model/src.rs | |||
@@ -120,7 +120,7 @@ impl HasSource for Function { | |||
120 | impl HasSource for Const { | 120 | impl HasSource for Const { |
121 | type Ast = ast::ConstDef; | 121 | type Ast = ast::ConstDef; |
122 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<ast::ConstDef> { | 122 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<ast::ConstDef> { |
123 | self.id.source(db) | 123 | self.id.lookup(db).source(db) |
124 | } | 124 | } |
125 | } | 125 | } |
126 | impl HasSource for Static { | 126 | impl HasSource for Static { |
@@ -138,7 +138,7 @@ impl HasSource for Trait { | |||
138 | impl HasSource for TypeAlias { | 138 | impl HasSource for TypeAlias { |
139 | type Ast = ast::TypeAliasDef; | 139 | type Ast = ast::TypeAliasDef; |
140 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<ast::TypeAliasDef> { | 140 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<ast::TypeAliasDef> { |
141 | self.id.source(db) | 141 | self.id.lookup(db).source(db) |
142 | } | 142 | } |
143 | } | 143 | } |
144 | impl HasSource for MacroDef { | 144 | impl HasSource for MacroDef { |