Use LayoutError
's implementation of IntoDiagnostic
This commit is contained in:
parent
0381e51822
commit
a8a8055cc7
4 changed files with 7 additions and 18 deletions
|
@ -55,14 +55,6 @@ pub(crate) struct SymbolAlreadyDefined<'a> {
|
|||
#[diag(codegen_llvm_branch_protection_requires_aarch64)]
|
||||
pub(crate) struct BranchProtectionRequiresAArch64;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(codegen_llvm_layout_size_overflow)]
|
||||
pub(crate) struct LayoutSizeOverflow {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub error: String,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(codegen_llvm_invalid_minimum_alignment)]
|
||||
pub(crate) struct InvalidMinimumAlignment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue