diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-15 11:53:55 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-15 11:53:55 +0000 |
commit | 04f1bd17cbedfdc89b1061376dabd52aa94cb4a9 (patch) | |
tree | ec1b28ac2a90ebbc42d88be3a79065f71ff55db9 /crates/ra_hir_def/src/nameres/collector.rs | |
parent | 3948de3143d06cc3056b6b8f0d18cb3e1468ae03 (diff) | |
parent | c3f84960aa99529a3afc8f28c16e657fb071db5f (diff) |
Merge #2257
2257: Flatten expr module 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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 83eef821f..5c899aff3 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -664,7 +664,8 @@ where | |||
664 | let name = def.name.clone(); | 664 | let name = def.name.clone(); |
665 | let def: PerNs = match def.kind { | 665 | let def: PerNs = match def.kind { |
666 | raw::DefKind::Function(ast_id) => { | 666 | raw::DefKind::Function(ast_id) => { |
667 | PerNs::values(FunctionId::from_ast_id(ctx, ast_id).into()) | 667 | let f = FunctionId::from_ast_id(ctx, ast_id); |
668 | PerNs::values(f.into()) | ||
668 | } | 669 | } |
669 | raw::DefKind::Struct(ast_id) => { | 670 | raw::DefKind::Struct(ast_id) => { |
670 | let id = StructOrUnionId::from_ast_id(ctx, ast_id).into(); | 671 | let id = StructOrUnionId::from_ast_id(ctx, ast_id).into(); |