mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Add an assert
This commit is contained in:
parent
969f588025
commit
5f3509e140
@ -453,6 +453,7 @@ impl Ty {
|
||||
{
|
||||
substs.push(Ty::Unknown);
|
||||
}
|
||||
assert_eq!(substs.len(), def_generics.params.len());
|
||||
Substs(substs.into())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user