rust/compiler/rustc_codegen_gcc/src/errors.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
787 B
Rust
Raw Normal View History

2022-08-27 02:32:04 +00:00
use rustc_macros::SessionDiagnostic;
2022-08-27 03:23:50 +00:00
use rustc_span::Span;
2022-08-27 02:32:04 +00:00
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::ranlib_failure)]
pub(crate) struct RanlibFailure {
pub exit_code: String,
2022-08-27 02:32:04 +00:00
}
2022-08-27 03:23:50 +00:00
2022-08-27 22:19:16 +00:00
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::layout_size_overflow)]
pub(crate) struct LayoutSizeOverflow {
#[primary_span]
pub span: Span,
pub error: String,
}
2022-08-27 03:23:50 +00:00
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::linkage_const_or_mut_type)]
pub(crate) struct LinkageConstOrMutType {
#[primary_span]
pub span: Span
}
2022-08-27 03:44:44 +00:00
2022-08-27 03:50:37 +00:00
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::lto_not_supported)]
pub(crate) struct LTONotSupported {}
2022-08-27 03:44:44 +00:00
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::unwinding_inline_asm)]
pub(crate) struct UnwindingInlineAsm {
#[primary_span]
pub span: Span
}