Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/hir-def/src/test_db.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/test_db.rs b/crates/hir-def/src/test_db.rs
index 91cadb0e81..a6a66dfb79 100644
--- a/crates/hir-def/src/test_db.rs
+++ b/crates/hir-def/src/test_db.rs
@@ -281,8 +281,8 @@ impl TestDB {
let editioned_file_id_wrapper =
base_db::EditionedFileId::new(db.as_dyn_database(), position.file_id);
- let root = db.parse(editioned_file_id_wrapper);
- let scope_iter = algo::ancestors_at_offset(&root.syntax_node(), position.offset)
+ let root_syntax_node = db.parse(editioned_file_id_wrapper).syntax_node();
+ let scope_iter = algo::ancestors_at_offset(&root_syntax_node, position.offset)
.filter_map(|node| {
let block = ast::BlockExpr::cast(node)?;
let expr = ast::Expr::from(block);