rust/src/errors.rs

16 lines
354 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: Option<i32>
}
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
}