aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres/path_resolution.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-01-25 18:02:05 +0000
committerJonas Schievink <[email protected]>2021-01-25 18:02:05 +0000
commit98a88ebb9ec46ed69dc7a3dbdc53a62ab9c1d14a (patch)
tree0b69af26876f331a08960a8e402c8f0f37754a8a /crates/hir_def/src/nameres/path_resolution.rs
parent2c735ed734be9b9041921478e0049fffd7160f78 (diff)
Intern block locations and handle them in ModuleId
Diffstat (limited to 'crates/hir_def/src/nameres/path_resolution.rs')
-rw-r--r--crates/hir_def/src/nameres/path_resolution.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/nameres/path_resolution.rs b/crates/hir_def/src/nameres/path_resolution.rs
index c1eded5f2..8ce127dde 100644
--- a/crates/hir_def/src/nameres/path_resolution.rs
+++ b/crates/hir_def/src/nameres/path_resolution.rs
@@ -131,8 +131,8 @@ impl DefMap {
131 result.krate = result.krate.or(new.krate); 131 result.krate = result.krate.or(new.krate);
132 result.segment_index = result.segment_index.min(new.segment_index); 132 result.segment_index = result.segment_index.min(new.segment_index);
133 133
134 match &current_map.parent { 134 match &current_map.block {
135 Some(map) => current_map = map, 135 Some(block) => current_map = &block.parent,
136 None => return result, 136 None => return result,
137 } 137 }
138 } 138 }