diff options
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-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(); |