Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/closure_captures.rs')
-rw-r--r--crates/hir-ty/src/tests/closure_captures.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/tests/closure_captures.rs b/crates/hir-ty/src/tests/closure_captures.rs
index 1fc556d04d..c951a5481c 100644
--- a/crates/hir-ty/src/tests/closure_captures.rs
+++ b/crates/hir-ty/src/tests/closure_captures.rs
@@ -125,7 +125,7 @@ fn check_closure_captures(#[rust_analyzer::rust_fixture] ra_fixture: &str, expec
.info
.sources
.iter()
- .flat_map(|span| match span.final_source() {
+ .flat_map(|span| match span.final_source().unpack() {
ExprOrPatId::ExprId(expr) => {
vec![text_range(db, source_map.expr_syntax(expr).unwrap())]
}