diff options
author | Aleksey Kladov <[email protected]> | 2019-12-22 19:12:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-22 21:41:21 +0000 |
commit | e424545c0f5cbaf135c52764169ea20df7d07d35 (patch) | |
tree | 86f6d29653ba7e548f2a321b2ecdb20e7dc366f4 /crates/ra_hir_def/src/nameres/collector.rs | |
parent | 7c405c01567e814f18ebf8bdc6aa1f8f694919f0 (diff) |
Rudimentary name resolution for local items
Diffstat (limited to 'crates/ra_hir_def/src/nameres/collector.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 4f1fd4801..b9f40d3dd 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -446,7 +446,7 @@ where | |||
446 | let scope = &mut self.def_map.modules[module_id].scope; | 446 | let scope = &mut self.def_map.modules[module_id].scope; |
447 | let mut changed = false; | 447 | let mut changed = false; |
448 | for (name, res) in resolutions { | 448 | for (name, res) in resolutions { |
449 | changed |= scope.push_res(name.clone(), res); | 449 | changed |= scope.push_res(name.clone(), *res); |
450 | } | 450 | } |
451 | 451 | ||
452 | if !changed { | 452 | if !changed { |