1
Fork 0

Don't attempt to compute layout of type referencing error

This commit is contained in:
Michael Goulet 2023-07-16 23:26:02 +00:00
parent 9339f446a5
commit 37076c9b4e
8 changed files with 47 additions and 13 deletions

View file

@ -195,7 +195,7 @@ pub(crate) mod rustc {
impl<'tcx> From<&LayoutError<'tcx>> for Err {
fn from(err: &LayoutError<'tcx>) -> Self {
match err {
LayoutError::Unknown(..) => Self::UnknownLayout,
LayoutError::Unknown(..) | LayoutError::ReferencesError(..) => Self::UnknownLayout,
err => unimplemented!("{:?}", err),
}
}