Skip to content

Commit 22e6adf

Browse files
committed
Remove unused structs
1 parent 1bdb757 commit 22e6adf

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

compiler/rustc_codegen_gcc/src/errors.rs

-18
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ pub(crate) enum PossibleFeature<'a> {
3232
None,
3333
}
3434

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-
4735
#[derive(Diagnostic)]
4836
#[diag(codegen_gcc_lto_not_supported)]
4937
pub(crate) struct LTONotSupported;
@@ -81,12 +69,6 @@ pub(crate) struct CopyBitcode {
8169
#[note]
8270
pub(crate) struct DynamicLinkingWithLTO;
8371

84-
#[derive(Diagnostic)]
85-
#[diag(codegen_gcc_load_bitcode)]
86-
pub(crate) struct LoadBitcode {
87-
name: String,
88-
}
89-
9072
#[derive(Diagnostic)]
9173
#[diag(codegen_gcc_lto_disallowed)]
9274
pub(crate) struct LtoDisallowed;

0 commit comments

Comments
 (0)