Don't attempt to compute layout of type referencing error
This commit is contained in:
parent
9339f446a5
commit
37076c9b4e
8 changed files with 47 additions and 13 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue