diff options
| author | bors <bors@rust-lang.org> | 2022-09-27 01:14:02 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-27 01:14:02 +0000 |
| commit | 8c7e37697fc660be5f34fe690ce6f5bd17a3ef16 (patch) | |
| tree | 217fe96c2cb78fefd2a94a8c09f182863b044a8d | |
| parent | 1a24003eb6bc8377e76cd9f70bf6700bc842e99b (diff) | |
| parent | 729a9eb5d04df51c6ab6be1964037ddc5e94113f (diff) | |
| download | rust-8c7e37697fc660be5f34fe690ce6f5bd17a3ef16.tar.gz rust-8c7e37697fc660be5f34fe690ce6f5bd17a3ef16.zip | |
Auto merge of #13275 - Veykril:find-path, r=Veykril
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, |
