diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-09-22 17:56:58 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-09-22 17:56:58 +0200 |
| commit | 729a9eb5d04df51c6ab6be1964037ddc5e94113f (patch) | |
| tree | 9ddbd9646e0eb33eef7d2fcb92fb80e12a8fccd8 | |
| parent | 5b49745d009634170493a214364261e36228274b (diff) | |
| download | rust-729a9eb5d04df51c6ab6be1964037ddc5e94113f.tar.gz rust-729a9eb5d04df51c6ab6be1964037ddc5e94113f.zip | |
Fix find_path using the wrong module for visibility calculations
| -rw-r--r-- | crates/hir-def/src/find_path.rs | 2 |
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 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, |
