|
1 |
| -use rustc_errors::{ |
2 |
| - DiagCtxt, DiagnosticArgValue, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic, |
3 |
| - IntoDiagnosticArg, Level, |
4 |
| -}; |
| 1 | +use rustc_errors::{DiagCtxt, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic, Level}; |
5 | 2 | use rustc_macros::{Diagnostic, Subdiagnostic};
|
6 | 3 | use rustc_span::Span;
|
7 |
| -use std::borrow::Cow; |
8 | 4 |
|
9 | 5 | use crate::fluent_generated as fluent;
|
10 | 6 |
|
@@ -32,18 +28,6 @@ pub(crate) enum PossibleFeature<'a> {
|
32 | 28 | None,
|
33 | 29 | }
|
34 | 30 |
|
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 | 31 | #[derive(Diagnostic)]
|
48 | 32 | #[diag(codegen_gcc_lto_not_supported)]
|
49 | 33 | pub(crate) struct LTONotSupported;
|
@@ -81,12 +65,6 @@ pub(crate) struct CopyBitcode {
|
81 | 65 | #[note]
|
82 | 66 | pub(crate) struct DynamicLinkingWithLTO;
|
83 | 67 |
|
84 |
| -#[derive(Diagnostic)] |
85 |
| -#[diag(codegen_gcc_load_bitcode)] |
86 |
| -pub(crate) struct LoadBitcode { |
87 |
| - name: String, |
88 |
| -} |
89 |
| - |
90 | 68 | #[derive(Diagnostic)]
|
91 | 69 | #[diag(codegen_gcc_lto_disallowed)]
|
92 | 70 | pub(crate) struct LtoDisallowed;
|
|
0 commit comments