diff --git a/crates/hir-def/src/find_path.rs b/crates/hir-def/src/find_path.rs index b94b50004093c..c70e6fdccdcde 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,