Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/eager.rs')
-rw-r--r--crates/hir-expand/src/eager.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/hir-expand/src/eager.rs b/crates/hir-expand/src/eager.rs
index aca41b11f9..6b646f5e4f 100644
--- a/crates/hir-expand/src/eager.rs
+++ b/crates/hir-expand/src/eager.rs
@@ -187,7 +187,10 @@ fn lazy_expand(
);
let err = db.macro_expand_error(id);
- let value = db.parse_or_expand(id.as_file()).map(|node| InFile::new(id.as_file(), node));
+ let value =
+ db.parse_or_expand_with_err(id.as_file()).map(|node| InFile::new(id.as_file(), node));
+ // FIXME: report parse errors
+ let value = value.map(|it| it.map(|it| it.syntax_node()));
ExpandResult { value, err }
}