From 729a9eb5d04df51c6ab6be1964037ddc5e94113f Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 22 Sep 2022 17:56:58 +0200 Subject: [PATCH] Fix find_path using the wrong module for visibility calculations --- crates/hir-def/src/find_path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hir-def/src/find_path.rs b/crates/hir-def/src/find_path.rs index b94b5000409..c70e6fdccdc 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,