diff options
Diffstat (limited to 'crates/ra_hir/src/expr.rs')
-rw-r--r-- | crates/ra_hir/src/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs index 3ca0a4de5..9cdc0c645 100644 --- a/crates/ra_hir/src/expr.rs +++ b/crates/ra_hir/src/expr.rs | |||
@@ -122,7 +122,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> { | |||
122 | 122 | ||
123 | let std_result_path = known::std_result_result(); | 123 | let std_result_path = known::std_result_result(); |
124 | 124 | ||
125 | let resolver = self.func.resolver(db); | 125 | let resolver = self.func.id.resolver(db); |
126 | let std_result_enum = match resolver.resolve_known_enum(db, &std_result_path) { | 126 | let std_result_enum = match resolver.resolve_known_enum(db, &std_result_path) { |
127 | Some(it) => it, | 127 | Some(it) => it, |
128 | _ => return, | 128 | _ => return, |