Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/body.rs')
| -rw-r--r-- | crates/hir-def/src/body.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir-def/src/body.rs b/crates/hir-def/src/body.rs index 6b887bb1b3..928aadfbcc 100644 --- a/crates/hir-def/src/body.rs +++ b/crates/hir-def/src/body.rs @@ -190,8 +190,9 @@ impl Expander { let file_id = call_id.as_file(); - let raw_node = match db.parse_or_expand(file_id) { - Some(it) => it, + let raw_node = match db.parse_or_expand_with_err(file_id) { + // FIXME: report parse errors + Some(it) => it.syntax_node(), None => { // Only `None` if the macro expansion produced no usable AST. if err.is_none() { |