Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/lower/pattern_matching.rs')
-rw-r--r--crates/hir-ty/src/mir/lower/pattern_matching.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir-ty/src/mir/lower/pattern_matching.rs b/crates/hir-ty/src/mir/lower/pattern_matching.rs
index d985a6451b..2ffea34c85 100644
--- a/crates/hir-ty/src/mir/lower/pattern_matching.rs
+++ b/crates/hir-ty/src/mir/lower/pattern_matching.rs
@@ -349,8 +349,9 @@ impl MirLowerCtx<'_> {
mode,
)?,
None => {
- let unresolved_name =
- || MirLowerError::unresolved_path(self.db, p, self.edition());
+ let unresolved_name = || {
+ MirLowerError::unresolved_path(self.db, p, self.edition(), &self.body.types)
+ };
let hygiene = self.body.pat_path_hygiene(pattern);
let pr = self
.resolver