diff options
Diffstat (limited to 'crates/ra_hir_ty/src/infer/path.rs')
-rw-r--r-- | crates/ra_hir_ty/src/infer/path.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir_ty/src/infer/path.rs b/crates/ra_hir_ty/src/infer/path.rs index 39aa346eb..fcf13b0b3 100644 --- a/crates/ra_hir_ty/src/infer/path.rs +++ b/crates/ra_hir_ty/src/infer/path.rs | |||
@@ -177,13 +177,9 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
177 | AssocItemId::ConstId(c) => ValueNs::ConstId(c), | 177 | AssocItemId::ConstId(c) => ValueNs::ConstId(c), |
178 | AssocItemId::TypeAliasId(_) => unreachable!(), | 178 | AssocItemId::TypeAliasId(_) => unreachable!(), |
179 | }; | 179 | }; |
180 | let substs = Substs::build_for_def(self.db, item) | ||
181 | .use_parent_substs(&trait_ref.substs) | ||
182 | .fill_with_params() | ||
183 | .build(); | ||
184 | 180 | ||
185 | self.write_assoc_resolution(id, item); | 181 | self.write_assoc_resolution(id, item); |
186 | Some((def, Some(substs))) | 182 | Some((def, Some(trait_ref.substs))) |
187 | } | 183 | } |
188 | 184 | ||
189 | fn resolve_ty_assoc_item( | 185 | fn resolve_ty_assoc_item( |