]> git.lizzy.rs Git - rust.git/commitdiff
Fix find_path using the wrong module for visibility calculations
authorLukas Wirth <lukastw97@gmail.com>
Thu, 22 Sep 2022 15:56:58 +0000 (17:56 +0200)
committerLukas Wirth <lukastw97@gmail.com>
Thu, 22 Sep 2022 15:56:58 +0000 (17:56 +0200)
crates/hir-def/src/find_path.rs

index b94b50004093ccdee496da7c23884e9a46428b5b..c70e6fdccdcde56c5d6a18ba4fe5c5c235c65cdb 100644 (file)
@@ -333,8 +333,8 @@ fn calculate_best_path(
                     db,
                     def_map,
                     visited_modules,
-                    from,
                     crate_root,
+                    from,
                     info.container,
                     max_len - 1,
                     prefixed,