diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-22 21:42:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-22 21:42:54 +0000 |
commit | 60aa4d12f95477565d5b01f122d2c9dd845015b4 (patch) | |
tree | 86f6d29653ba7e548f2a321b2ecdb20e7dc366f4 /crates/ra_hir_def/src/nameres/collector.rs | |
parent | 78f7683b9a1c6192b4828ceedb14ed498b241263 (diff) | |
parent | e424545c0f5cbaf135c52764169ea20df7d07d35 (diff) |
Merge #2648
2648: Rudimentary name resolution for local items r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 { |