mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Decouple
This commit is contained in:
parent
621cf06156
commit
061e6c77b5
6 changed files with 108 additions and 78 deletions
|
@ -122,7 +122,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
|
||||
let std_result_path = known::std_result_result();
|
||||
|
||||
let resolver = self.func.resolver(db);
|
||||
let resolver = self.func.id.resolver(db);
|
||||
let std_result_enum = match resolver.resolve_known_enum(db, &std_result_path) {
|
||||
Some(it) => it,
|
||||
_ => return,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue