Skip to content

Commit f898471

Browse files
committed
de-duplicate LayoutError formatting
1 parent ad5b7a3 commit f898471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ impl<'gcc, 'tcx> LayoutOfHelpers<'tcx> for CodegenCx<'gcc, 'tcx> {
538538
| LayoutError::InvalidSimd { .. }
539539
| LayoutError::ReferencesError(_) = err
540540
{
541-
self.tcx.dcx().emit_fatal(respan(span, err.into_diagnostic()))
541+
self.tcx.dcx().span_fatal(span, err.to_string())
542542
} else {
543543
self.tcx.dcx().emit_fatal(ssa_errors::FailedToGetLayout { span, ty, err })
544544
}

0 commit comments

Comments
 (0)