|
1 | 1 | use rustc_errors::{ |
2 | | - DiagCtxt, DiagnosticArgValue, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic, |
3 | | - IntoDiagnosticArg, Level, |
| 2 | + DiagCtxt, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic, Level, |
4 | 3 | }; |
5 | 4 | use rustc_macros::{Diagnostic, Subdiagnostic}; |
6 | 5 | use rustc_span::Span; |
7 | | -use std::borrow::Cow; |
8 | 6 |
|
9 | 7 | use crate::fluent_generated as fluent; |
10 | 8 |
|
@@ -32,18 +30,6 @@ pub(crate) enum PossibleFeature<'a> { |
32 | 30 | None, |
33 | 31 | } |
34 | 32 |
|
35 | | -struct ExitCode(Option<i32>); |
36 | | - |
37 | | -impl IntoDiagnosticArg for ExitCode { |
38 | | - fn into_diagnostic_arg(self) -> DiagnosticArgValue { |
39 | | - let ExitCode(exit_code) = self; |
40 | | - match exit_code { |
41 | | - Some(t) => t.into_diagnostic_arg(), |
42 | | - None => DiagnosticArgValue::Str(Cow::Borrowed("<signal>")), |
43 | | - } |
44 | | - } |
45 | | -} |
46 | | - |
47 | 33 | #[derive(Diagnostic)] |
48 | 34 | #[diag(codegen_gcc_lto_not_supported)] |
49 | 35 | pub(crate) struct LTONotSupported; |
@@ -81,12 +67,6 @@ pub(crate) struct CopyBitcode { |
81 | 67 | #[note] |
82 | 68 | pub(crate) struct DynamicLinkingWithLTO; |
83 | 69 |
|
84 | | -#[derive(Diagnostic)] |
85 | | -#[diag(codegen_gcc_load_bitcode)] |
86 | | -pub(crate) struct LoadBitcode { |
87 | | - name: String, |
88 | | -} |
89 | | - |
90 | 70 | #[derive(Diagnostic)] |
91 | 71 | #[diag(codegen_gcc_lto_disallowed)] |
92 | 72 | pub(crate) struct LtoDisallowed; |
|
0 commit comments