diff options
-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 | } |