diff options
author | Edwin Cheng <[email protected]> | 2020-12-15 06:39:15 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-12-15 06:39:15 +0000 |
commit | a68ff269a921b4a3d19256a0f53596e84776105a (patch) | |
tree | 2e65ef55834dcc43f235edeb3d072bfc0df2b018 /crates/hir_expand | |
parent | dbd0cfba531c21de01af7b1a12ce9eb6b1271a5d (diff) |
Expand statements for mbe in lowering
Diffstat (limited to 'crates/hir_expand')
-rw-r--r-- | crates/hir_expand/src/db.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index ffb70f723..7fc700e82 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs | |||
@@ -395,7 +395,8 @@ fn to_fragment_kind(db: &dyn AstDatabase, id: MacroCallId) -> FragmentKind { | |||
395 | FragmentKind::Expr | 395 | FragmentKind::Expr |
396 | } | 396 | } |
397 | // FIXME: Expand to statements in appropriate positions; HIR lowering needs to handle that | 397 | // FIXME: Expand to statements in appropriate positions; HIR lowering needs to handle that |
398 | EXPR_STMT | BLOCK_EXPR => FragmentKind::Expr, | 398 | EXPR_STMT => FragmentKind::Statements, |
399 | BLOCK_EXPR => FragmentKind::Expr, | ||
399 | ARG_LIST => FragmentKind::Expr, | 400 | ARG_LIST => FragmentKind::Expr, |
400 | TRY_EXPR => FragmentKind::Expr, | 401 | TRY_EXPR => FragmentKind::Expr, |
401 | TUPLE_EXPR => FragmentKind::Expr, | 402 | TUPLE_EXPR => FragmentKind::Expr, |