diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-15 12:41:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-15 12:41:07 +0000 |
commit | 39aae835fd70d06092c1be1add6eef3984439529 (patch) | |
tree | d59398a2d4674a214d776ab97576209783aa4629 /crates/hir_expand/src | |
parent | 435d46b1835eb29ffdefc6dacd609838a5c1035a (diff) | |
parent | 1f4da7098c46a81784a099d80ba63539f94092d2 (diff) |
Merge #6886
6886: Expand statements for macros in lowering r=matklad a=edwin0cheng
Fixes #6811
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r-- | crates/hir_expand/src/db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index ffb70f723..11b5b98c8 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs | |||
@@ -394,8 +394,8 @@ fn to_fragment_kind(db: &dyn AstDatabase, id: MacroCallId) -> FragmentKind { | |||
394 | // FIXME: Handle Pattern | 394 | // FIXME: Handle Pattern |
395 | FragmentKind::Expr | 395 | FragmentKind::Expr |
396 | } | 396 | } |
397 | // FIXME: Expand to statements in appropriate positions; HIR lowering needs to handle that | 397 | EXPR_STMT => FragmentKind::Statements, |
398 | EXPR_STMT | BLOCK_EXPR => FragmentKind::Expr, | 398 | BLOCK_EXPR => FragmentKind::Expr, |
399 | ARG_LIST => FragmentKind::Expr, | 399 | ARG_LIST => FragmentKind::Expr, |
400 | TRY_EXPR => FragmentKind::Expr, | 400 | TRY_EXPR => FragmentKind::Expr, |
401 | TUPLE_EXPR => FragmentKind::Expr, | 401 | TUPLE_EXPR => FragmentKind::Expr, |