diff options
author | Edwin Cheng <[email protected]> | 2019-12-20 19:37:03 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-12-20 19:37:03 +0000 |
commit | ad81d1dbc19803b5ccf1b230237642944edbff13 (patch) | |
tree | 5af29382643b659b69523e65354e862d7e71087d /crates/ra_hir_expand | |
parent | cfc50ff160d0af2ce5cd931c6d41161abfdb2fbd (diff) |
Add support macros in impl blocks
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/src/db.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs index f68aca789..d86445abf 100644 --- a/crates/ra_hir_expand/src/db.rs +++ b/crates/ra_hir_expand/src/db.rs | |||
@@ -188,6 +188,7 @@ fn to_fragment_kind(db: &dyn AstDatabase, macro_call_id: MacroCallId) -> Fragmen | |||
188 | ARG_LIST => FragmentKind::Expr, | 188 | ARG_LIST => FragmentKind::Expr, |
189 | TRY_EXPR => FragmentKind::Expr, | 189 | TRY_EXPR => FragmentKind::Expr, |
190 | TUPLE_EXPR => FragmentKind::Expr, | 190 | TUPLE_EXPR => FragmentKind::Expr, |
191 | ITEM_LIST => FragmentKind::Items, | ||
191 | _ => { | 192 | _ => { |
192 | // Unknown , Just guess it is `Items` | 193 | // Unknown , Just guess it is `Items` |
193 | FragmentKind::Items | 194 | FragmentKind::Items |