mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-21 12:13:12 +00:00
use correct resolver for expressions
This commit is contained in:
parent
ebb0c377f0
commit
a347208bb2
@ -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)),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user