Skip to content

Commit ceae2a0

Browse files
committed
Remove unused structs
1 parent f861962 commit ceae2a0

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

compiler/rustc_codegen_gcc/src/errors.rs

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
use rustc_errors::{
2-
DiagCtxt, DiagArgValue, Diag, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
2+
DiagCtxt, Diag, EmissionGuarantee, IntoDiagnostic, Level,
33
};
44
use rustc_macros::{Diagnostic, Subdiagnostic};
55
use rustc_span::Span;
6-
use std::borrow::Cow;
76

87
use crate::fluent_generated as fluent;
98

@@ -31,18 +30,6 @@ pub(crate) enum PossibleFeature<'a> {
3130
None,
3231
}
3332

34-
struct ExitCode(Option<i32>);
35-
36-
impl IntoDiagnosticArg for ExitCode {
37-
fn into_diagnostic_arg(self) -> DiagArgValue {
38-
let ExitCode(exit_code) = self;
39-
match exit_code {
40-
Some(t) => t.into_diagnostic_arg(),
41-
None => DiagArgValue::Str(Cow::Borrowed("<signal>")),
42-
}
43-
}
44-
}
45-
4633
#[derive(Diagnostic)]
4734
#[diag(codegen_gcc_lto_not_supported)]
4835
pub(crate) struct LTONotSupported;
@@ -80,12 +67,6 @@ pub(crate) struct CopyBitcode {
8067
#[note]
8168
pub(crate) struct DynamicLinkingWithLTO;
8269

83-
#[derive(Diagnostic)]
84-
#[diag(codegen_gcc_load_bitcode)]
85-
pub(crate) struct LoadBitcode {
86-
name: String,
87-
}
88-
8970
#[derive(Diagnostic)]
9071
#[diag(codegen_gcc_lto_disallowed)]
9172
pub(crate) struct LtoDisallowed;

0 commit comments

Comments
 (0)