aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/infer
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/infer')
-rw-r--r--crates/ra_hir/src/ty/infer/path.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/infer/path.rs b/crates/ra_hir/src/ty/infer/path.rs
index 0cde77265..c58564b22 100644
--- a/crates/ra_hir/src/ty/infer/path.rs
+++ b/crates/ra_hir/src/ty/infer/path.rs
@@ -230,7 +230,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
230 &mut self, 230 &mut self,
231 ty: Ty, 231 ty: Ty,
232 name: &Name, 232 name: &Name,
233 _id: ExprOrPatId, 233 id: ExprOrPatId,
234 ) -> Option<(ValueNs, Option<Substs>)> { 234 ) -> Option<(ValueNs, Option<Substs>)> {
235 let krate = self.resolver.krate()?; 235 let krate = self.resolver.krate()?;
236 236
@@ -276,6 +276,8 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
276 trait_: t, 276 trait_: t,
277 substs: trait_substs, 277 substs: trait_substs,
278 })); 278 }));
279
280 self.write_assoc_resolution(id, *item);
279 return Some((ValueNs::Function(f), Some(substs))); 281 return Some((ValueNs::Function(f), Some(substs)));
280 } 282 }
281 } 283 }