diff options
author | Aleksey Kladov <[email protected]> | 2019-04-11 14:51:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-04-11 14:51:30 +0100 |
commit | a347208bb283963cacb75439d1cf474d1f064f02 (patch) | |
tree | fd5fe199b176212972f80b273b67cf262dc9f24a /crates | |
parent | ebb0c377f0ab99a0f5e6d0c776cb9b026b62b0e4 (diff) |
use correct resolver for expressions
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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 { | |||
274 | None | 274 | None |
275 | }); | 275 | }); |
276 | SourceAnalyzer { | 276 | SourceAnalyzer { |
277 | resolver: def_with_body | 277 | resolver: resolver_for_node(db, file_id, node), |
278 | .map(|it| it.resolver(db)) | ||
279 | .unwrap_or_else(|| resolver_for_node(db, file_id, node)), | ||
280 | body_source_map: def_with_body.map(|it| it.body_source_map(db)), | 278 | body_source_map: def_with_body.map(|it| it.body_source_map(db)), |
281 | infer: def_with_body.map(|it| it.infer(db)), | 279 | infer: def_with_body.map(|it| it.infer(db)), |
282 | } | 280 | } |