mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
fix: Properly prevent mir building with unknown types present
This commit is contained in:
parent
fdac69e4ae
commit
7c5275939a
3 changed files with 14 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue