about summary refs log tree commit diff
path: root/compiler/rustc_transmute/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-07-16 23:26:02 +0000
committerMichael Goulet <michael@errs.io>2023-07-27 18:24:08 +0000
commit37076c9b4ea70878027304af99cdaf9b75b79f57 (patch)
tree598570f9cf1d964a7f0c41f916e52094706c3520 /compiler/rustc_transmute/src
parent9339f446a5302cd5041d3f3b5e59761f36699167 (diff)
downloadrust-37076c9b4ea70878027304af99cdaf9b75b79f57.tar.gz
rust-37076c9b4ea70878027304af99cdaf9b75b79f57.zip
Don't attempt to compute layout of type referencing error
Diffstat (limited to 'compiler/rustc_transmute/src')
-rw-r--r--compiler/rustc_transmute/src/layout/tree.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_transmute/src/layout/tree.rs b/compiler/rustc_transmute/src/layout/tree.rs
index 8bd26818256..e8ddb0a4396 100644
--- a/compiler/rustc_transmute/src/layout/tree.rs
+++ b/compiler/rustc_transmute/src/layout/tree.rs
@@ -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),
             }
         }