1
Fork 0

Fix an ICE that occurs after an error has already been reported

This commit is contained in:
Oli Scherer 2024-01-09 14:46:30 +00:00
parent be00c5a9b8
commit 4f0869ea89
3 changed files with 48 additions and 0 deletions

View file

@ -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),
}
}