aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-01-19 18:00:36 +0000
committerFlorian Diebold <[email protected]>2019-01-19 18:00:36 +0000
commit5f3509e140d19b989db418a00ac6778c622cde5d (patch)
tree0a6ce660ee32080287284c93bffaaaada91f3584
parent969f588025ab2c3224757e282ef78a546c4f56c4 (diff)
Add an assert
-rw-r--r--crates/ra_hir/src/ty.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index 3170ed24e..9b7182485 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -453,6 +453,7 @@ impl Ty {
453 { 453 {
454 substs.push(Ty::Unknown); 454 substs.push(Ty::Unknown);
455 } 455 }
456 assert_eq!(substs.len(), def_generics.params.len());
456 Substs(substs.into()) 457 Substs(substs.into())
457 } 458 }
458 459