Add an assert

This commit is contained in:
Florian Diebold 2019-01-19 19:00:36 +01:00
parent 969f588025
commit 5f3509e140

View File

@ -453,6 +453,7 @@ impl Ty {
{
substs.push(Ty::Unknown);
}
assert_eq!(substs.len(), def_generics.params.len());
Substs(substs.into())
}