Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/lib.rs')
| -rw-r--r-- | crates/hir/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index ad1a9c9072..1ba73c180c 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -2100,8 +2100,8 @@ impl DefWithBody { } } - if let Ok(borrowck_results) = db.borrowck(id.into()) { - for borrowck_result in borrowck_results.iter() { + if let Ok(borrowck_results) = InferBodyId::from(id).borrowck(db) { + for borrowck_result in borrowck_results { let mir_body = borrowck_result.mir_body(db); for moof in &borrowck_result.moved_out_of_ref { let span: InFile<SyntaxNodePtr> = match moof.span { |