fix: Properly prevent mir building with unknown types present

This commit is contained in:
Lukas Wirth 2024-09-06 14:44:05 +02:00
parent fdac69e4ae
commit 7c5275939a
3 changed files with 14 additions and 5 deletions

View file

@ -185,8 +185,8 @@ impl<V, T> ProjectionElem<V, T> {
never!("Out of bound tuple field");
TyKind::Error.intern(Interner)
}),
_ => {
never!("Only tuple has tuple field");
ty => {
never!("Only tuple has tuple field: {:?}", ty);
TyKind::Error.intern(Interner)
}
},