diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-05-28 10:43:51 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-11-26 19:35:32 +0000 |
| commit | 690085c2dab7e28851a0521e9513eafc5acb4e4e (patch) | |
| tree | 3c2ed30de3a75ce958c5cdc27daccd57b42d5634 /src/errors.rs | |
| parent | 20ff36217af99b92846d91869b6fa434da56f8c2 (diff) | |
Rewrite LLVM's archive writer in Rust
This allows it to be used by other codegen backends
Diffstat (limited to 'src/errors.rs')
| -rw-r--r-- | src/errors.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/errors.rs b/src/errors.rs index 15ad90f9043..89fed7be131 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -17,18 +17,6 @@ impl IntoDiagnosticArg for ExitCode { } #[derive(Diagnostic)] -#[diag(codegen_gcc_ranlib_failure)] -pub(crate) struct RanlibFailure { - exit_code: ExitCode, -} - -impl RanlibFailure { - pub fn new(exit_code: Option<i32>) -> Self { - RanlibFailure { exit_code: ExitCode(exit_code) } - } -} - -#[derive(Diagnostic)] #[diag(codegen_gcc_invalid_monomorphization_basic_integer, code = "E0511")] pub(crate) struct InvalidMonomorphizationBasicInteger<'a> { #[primary_span] @@ -227,7 +215,7 @@ pub(crate) struct InvalidMonomorphizationUnsupportedOperation<'a> { #[diag(codegen_gcc_linkage_const_or_mut_type)] pub(crate) struct LinkageConstOrMutType { #[primary_span] - pub span: Span + pub span: Span, } #[derive(Diagnostic)] @@ -238,5 +226,5 @@ pub(crate) struct LTONotSupported; #[diag(codegen_gcc_unwinding_inline_asm)] pub(crate) struct UnwindingInlineAsm { #[primary_span] - pub span: Span + pub span: Span, } |
