From 5f3509e140d19b989db418a00ac6778c622cde5d Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sat, 19 Jan 2019 19:00:36 +0100 Subject: Add an assert --- crates/ra_hir/src/ty.rs | 1 + 1 file changed, 1 insertion(+) 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 { { substs.push(Ty::Unknown); } + assert_eq!(substs.len(), def_generics.params.len()); Substs(substs.into()) } -- cgit v1.2.3