diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-11 00:33:18 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-11 00:33:18 +0100 |
commit | eccd0efedb230985c582edbf9d272bf5f0224acf (patch) | |
tree | e9d878c43c5b487a8788ea2000e6e00cac883cc2 /crates/hir_expand/src | |
parent | a8a25863f6e1e6da94b60813b2daee73b55132f7 (diff) | |
parent | e2c1da36f59cd99d4da4c1d5f8f323626d3dbe61 (diff) |
Merge #8463
8463: Support macros in pattern position r=jonas-schievink a=jonas-schievink
This was fairly easy, because patterns are limited to bodies, so almost all changes were inside body lowering.
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_expand/src')
-rw-r--r-- | crates/hir_expand/src/db.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index 10fe60821..ca705ee9d 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs | |||
@@ -439,6 +439,7 @@ fn to_fragment_kind(db: &dyn AstDatabase, id: MacroCallId) -> FragmentKind { | |||
439 | match parent.kind() { | 439 | match parent.kind() { |
440 | MACRO_ITEMS | SOURCE_FILE => FragmentKind::Items, | 440 | MACRO_ITEMS | SOURCE_FILE => FragmentKind::Items, |
441 | MACRO_STMTS => FragmentKind::Statements, | 441 | MACRO_STMTS => FragmentKind::Statements, |
442 | MACRO_PAT => FragmentKind::Pattern, | ||
442 | ITEM_LIST => FragmentKind::Items, | 443 | ITEM_LIST => FragmentKind::Items, |
443 | LET_STMT => { | 444 | LET_STMT => { |
444 | // FIXME: Handle LHS Pattern | 445 | // FIXME: Handle LHS Pattern |