From a347208bb283963cacb75439d1cf474d1f064f02 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 11 Apr 2019 16:51:30 +0300 Subject: use correct resolver for expressions --- crates/ra_hir/src/source_binder.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 560b48303..a764c54c0 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs @@ -274,9 +274,7 @@ impl SourceAnalyzer { None }); SourceAnalyzer { - resolver: def_with_body - .map(|it| it.resolver(db)) - .unwrap_or_else(|| resolver_for_node(db, file_id, node)), + resolver: resolver_for_node(db, file_id, node), body_source_map: def_with_body.map(|it| it.body_source_map(db)), infer: def_with_body.map(|it| it.infer(db)), } -- cgit v1.2.3