diff options
Diffstat (limited to 'crates/hir_ty/src/infer')
-rw-r--r-- | crates/hir_ty/src/infer/expr.rs | 1 | ||||
-rw-r--r-- | crates/hir_ty/src/infer/path.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs index 9bf9f87e4..b08880cdf 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs | |||
@@ -849,6 +849,7 @@ impl<'a> InferenceContext<'a> { | |||
849 | self.trait_env.clone(), | 849 | self.trait_env.clone(), |
850 | krate, | 850 | krate, |
851 | &traits_in_scope, | 851 | &traits_in_scope, |
852 | self.resolver.module(), | ||
852 | method_name, | 853 | method_name, |
853 | ) | 854 | ) |
854 | }); | 855 | }); |
diff --git a/crates/hir_ty/src/infer/path.rs b/crates/hir_ty/src/infer/path.rs index 58cce56ab..cefa38509 100644 --- a/crates/hir_ty/src/infer/path.rs +++ b/crates/hir_ty/src/infer/path.rs | |||
@@ -230,6 +230,7 @@ impl<'a> InferenceContext<'a> { | |||
230 | self.trait_env.clone(), | 230 | self.trait_env.clone(), |
231 | krate, | 231 | krate, |
232 | &traits_in_scope, | 232 | &traits_in_scope, |
233 | None, | ||
233 | Some(name), | 234 | Some(name), |
234 | method_resolution::LookupMode::Path, | 235 | method_resolution::LookupMode::Path, |
235 | move |_ty, item| { | 236 | move |_ty, item| { |