Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #13275 - Veykril:find-path, r=Veykril
Fix find_path using the wrong module for visibility calculations
bors 2022-09-27
parent 1a24003 · parent 729a9eb · commit 8c7e376
-rw-r--r--crates/hir-def/src/find_path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-def/src/find_path.rs b/crates/hir-def/src/find_path.rs
index b94b500040..c70e6fdccd 100644
--- a/crates/hir-def/src/find_path.rs
+++ b/crates/hir-def/src/find_path.rs
@@ -333,8 +333,8 @@ fn calculate_best_path(
db,
def_map,
visited_modules,
- from,
crate_root,
+ from,
info.container,
max_len - 1,
prefixed,