diff options
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/body.rs | 3 | ||||
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs index d4cab0561..332c509e1 100644 --- a/crates/ra_hir_def/src/body.rs +++ b/crates/ra_hir_def/src/body.rs | |||
@@ -17,7 +17,7 @@ use crate::{ | |||
17 | nameres::{BuiltinShadowMode, CrateDefMap}, | 17 | nameres::{BuiltinShadowMode, CrateDefMap}, |
18 | path::{ModPath, Path}, | 18 | path::{ModPath, Path}, |
19 | src::HasSource, | 19 | src::HasSource, |
20 | DefWithBodyId, HasModule, Lookup, ModuleId, | 20 | DefWithBodyId, HasModule, Lookup, ModuleDefId, ModuleId, |
21 | }; | 21 | }; |
22 | 22 | ||
23 | struct Expander { | 23 | struct Expander { |
@@ -119,6 +119,7 @@ pub struct Body { | |||
119 | pub params: Vec<PatId>, | 119 | pub params: Vec<PatId>, |
120 | /// The `ExprId` of the actual body expression. | 120 | /// The `ExprId` of the actual body expression. |
121 | pub body_expr: ExprId, | 121 | pub body_expr: ExprId, |
122 | pub defs: Vec<ModuleDefId>, | ||
122 | } | 123 | } |
123 | 124 | ||
124 | pub type ExprPtr = Either<AstPtr<ast::Expr>, AstPtr<ast::RecordField>>; | 125 | pub type ExprPtr = Either<AstPtr<ast::Expr>, AstPtr<ast::RecordField>>; |
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index 61193b4d8..86960186f 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -41,6 +41,7 @@ pub(super) fn lower( | |||
41 | pats: Arena::default(), | 41 | pats: Arena::default(), |
42 | params: Vec::new(), | 42 | params: Vec::new(), |
43 | body_expr: ExprId::dummy(), | 43 | body_expr: ExprId::dummy(), |
44 | defs: Vec::new(), | ||
44 | }, | 45 | }, |
45 | } | 46 | } |
46 | .collect(params, body) | 47 | .collect(params, body) |