Skip to content

Commit

Permalink
Rollup merge of rust-lang#111580 - atsuzaki:layout-ice, r=oli-obk
Browse files Browse the repository at this point in the history
Don't ICE on layout computation failure

Fixes rust-lang#111176 regression.

r? `@oli-obk`
  • Loading branch information
matthiaskrgr committed Aug 29, 2023
2 parents 8335927 + b88dfcf commit 65d75fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl<'tcx> LayoutOfHelpers<'tcx> for RevealAllLayoutCx<'tcx> {
if let LayoutError::SizeOverflow(_) | LayoutError::ReferencesError(_) = err {
self.0.sess.span_fatal(span, err.to_string())
} else {
span_bug!(span, "failed to get layout for `{}`: {}", ty, err)
self.0.sess.span_fatal(span, format!("failed to get layout for `{}`: {}", ty, err))
}
}
}
Expand Down

0 comments on commit 65d75fd

Please sign in to comment.