aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/infer
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-01-31 14:34:43 +0000
committerFlorian Diebold <[email protected]>2020-02-07 17:28:10 +0000
commit4a8279a21ad75ae2cb6d96746b8a880038ec0455 (patch)
tree4b1d566710e6bb6f63453ceae988c24763dc7e83 /crates/ra_hir_ty/src/infer
parentdbc14f9d570e5bc1ddae05e9ccd8f163082b3cac (diff)
Fix another test
Diffstat (limited to 'crates/ra_hir_ty/src/infer')
-rw-r--r--crates/ra_hir_ty/src/infer/path.rs6
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(