aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-03-21 21:39:31 +0000
committerFlorian Diebold <[email protected]>2019-03-21 21:39:31 +0000
commit1ee779d1f74f48d9f3098001c63108b794dbc0b5 (patch)
treec5e4c46da389accd0b03b3b285f5057265f65f65 /crates/ra_hir/src/ty
parentcbb418ebb87309a798ca16408c1dfb09cd638a9b (diff)
Assert in apply_substs that the number of parameters doesn't change
... and fix a small bug revealed by that.
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r--crates/ra_hir/src/ty/infer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs
index be74b9fa6..bf42befbb 100644
--- a/crates/ra_hir/src/ty/infer.rs
+++ b/crates/ra_hir/src/ty/infer.rs
@@ -817,7 +817,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
817 Some(func.generic_params(self.db)), 817 Some(func.generic_params(self.db)),
818 ) 818 )
819 } 819 }
820 None => (Ty::Unknown, receiver_ty, None), 820 None => (receiver_ty, Ty::Unknown, None),
821 }; 821 };
822 let substs = self.substs_for_method_call(def_generics, generic_args); 822 let substs = self.substs_for_method_call(def_generics, generic_args);
823 let method_ty = method_ty.apply_substs(substs); 823 let method_ty = method_ty.apply_substs(substs);