mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 22:34:14 +00:00
Add an assert (and fix the other)
This commit is contained in:
parent
72712b8a42
commit
db9a5a9ac0
@ -443,7 +443,7 @@ impl Ty {
|
||||
for _ in supplied_params..def_generics.count_params_including_parent() {
|
||||
substs.push(Ty::Unknown);
|
||||
}
|
||||
assert_eq!(substs.len(), def_generics.params.len());
|
||||
assert_eq!(substs.len(), def_generics.count_params_including_parent());
|
||||
Substs(substs.into())
|
||||
}
|
||||
|
||||
@ -1374,6 +1374,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
|
||||
for _ in supplied_params..parent_param_count + param_count {
|
||||
substs.push(Ty::Unknown);
|
||||
}
|
||||
assert_eq!(substs.len(), parent_param_count + param_count);
|
||||
Substs(substs.into())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user