Port layout size overflow

This commit is contained in:
SLASHLogin 2022-08-26 10:14:15 +02:00
parent f031823ecd
commit 39d363fd58
3 changed files with 14 additions and 2 deletions

View file

@ -59,3 +59,11 @@ pub(crate) struct SymbolAlreadyDefined<'a> {
#[derive(SessionDiagnostic)]
#[diag(codegen_llvm::branch_protection_requires_aarch64)]
pub(crate) struct BranchProtectionRequiresAArch64;
#[derive(SessionDiagnostic)]
#[diag(codegen_llvm::layout_size_overflow)]
pub(crate) struct LayoutSizeOverflow {
#[primary_span]
pub span: Span,
pub error: String,
}