aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-12-15 06:39:15 +0000
committerEdwin Cheng <[email protected]>2020-12-15 06:39:15 +0000
commita68ff269a921b4a3d19256a0f53596e84776105a (patch)
tree2e65ef55834dcc43f235edeb3d072bfc0df2b018 /crates/hir_expand
parentdbd0cfba531c21de01af7b1a12ce9eb6b1271a5d (diff)
Expand statements for mbe in lowering
Diffstat (limited to 'crates/hir_expand')
-rw-r--r--crates/hir_expand/src/db.rs3
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,