diff options
Diffstat (limited to 'crates/hir_def/src/body.rs')
-rw-r--r-- | crates/hir_def/src/body.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir_def/src/body.rs b/crates/hir_def/src/body.rs index b1a3fe1cb..9dbe717e5 100644 --- a/crates/hir_def/src/body.rs +++ b/crates/hir_def/src/body.rs | |||
@@ -32,7 +32,7 @@ use crate::{ | |||
32 | nameres::DefMap, | 32 | nameres::DefMap, |
33 | path::{ModPath, Path}, | 33 | path::{ModPath, Path}, |
34 | src::HasSource, | 34 | src::HasSource, |
35 | AsMacroCall, DefWithBodyId, HasModule, LocalModuleId, Lookup, ModuleId, | 35 | AsMacroCall, BlockId, DefWithBodyId, HasModule, LocalModuleId, Lookup, ModuleId, |
36 | }; | 36 | }; |
37 | 37 | ||
38 | /// A subset of Expander that only deals with cfg attributes. We only need it to | 38 | /// A subset of Expander that only deals with cfg attributes. We only need it to |
@@ -226,6 +226,8 @@ pub struct Body { | |||
226 | pub params: Vec<PatId>, | 226 | pub params: Vec<PatId>, |
227 | /// The `ExprId` of the actual body expression. | 227 | /// The `ExprId` of the actual body expression. |
228 | pub body_expr: ExprId, | 228 | pub body_expr: ExprId, |
229 | /// Block expressions in this body that may contain inner items. | ||
230 | pub block_scopes: Vec<BlockId>, | ||
229 | pub item_scope: ItemScope, | 231 | pub item_scope: ItemScope, |
230 | _c: Count<Self>, | 232 | _c: Count<Self>, |
231 | } | 233 | } |