Add LinkageConstOrMutType

This commit is contained in:
Ellis Hoag
2022-08-26 20:23:50 -07:00
parent 9363f0fda5
commit 7e00a48305
3 changed files with 13 additions and 4 deletions

View File

@@ -1,7 +1,15 @@
use rustc_macros::SessionDiagnostic;
use rustc_span::Span;
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::ranlib_failure)]
pub(crate) struct RanlibFailure {
pub exit_code: Option<i32>
}
#[derive(SessionDiagnostic)]
#[diag(codegen_gcc::linkage_const_or_mut_type)]
pub(crate) struct LinkageConstOrMutType {
#[primary_span]
pub span: Span
}