Fix an ICE that occurs after an error has already been reported
This commit is contained in:
parent
be00c5a9b8
commit
4f0869ea89
3 changed files with 48 additions and 0 deletions
|
@ -199,6 +199,7 @@ pub(crate) mod rustc {
|
|||
match err {
|
||||
LayoutError::Unknown(..) | LayoutError::ReferencesError(..) => Self::UnknownLayout,
|
||||
LayoutError::SizeOverflow(..) => Self::SizeOverflow,
|
||||
LayoutError::Cycle(err) => Self::TypeError(*err),
|
||||
err => unimplemented!("{:?}", err),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue