diff options
| author | bors <bors@rust-lang.org> | 2023-08-05 06:22:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-05 06:22:33 +0000 |
| commit | 3d9e8f16b31586f1d4f9e9a0b9cd626d63454ed8 (patch) | |
| tree | 0594fecff57824ca58e21237eac1ef2ce2d377a2 /compiler/rustc_codegen_gcc | |
| parent | 646f5643aba41e0dfd62fc9d5cdfa955e4e6fa2a (diff) | |
| parent | 621aeeb096d8e4f3eb656259fc286a1f32862ed3 (diff) | |
| download | rust-3d9e8f16b31586f1d4f9e9a0b9cd626d63454ed8.tar.gz rust-3d9e8f16b31586f1d4f9e9a0b9cd626d63454ed8.zip | |
Auto merge of #3014 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/context.rs b/compiler/rustc_codegen_gcc/src/context.rs index 08507e19652..88dcafa7370 100644 --- a/compiler/rustc_codegen_gcc/src/context.rs +++ b/compiler/rustc_codegen_gcc/src/context.rs @@ -476,7 +476,7 @@ impl<'gcc, 'tcx> LayoutOfHelpers<'tcx> for CodegenCx<'gcc, 'tcx> { #[inline] fn handle_layout_err(&self, err: LayoutError<'tcx>, span: Span, ty: Ty<'tcx>) -> ! { - if let LayoutError::SizeOverflow(_) = err { + if let LayoutError::SizeOverflow(_) | LayoutError::ReferencesError(_) = err { self.sess().emit_fatal(respan(span, err.into_diagnostic())) } else { span_bug!(span, "failed to get layout for `{}`: {}", ty, err) |
