Skip to content

Commit 330ad49

Browse files
committed
Remove unused structs
1 parent f861962 commit 330ad49

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
@@ -31,18 +31,6 @@ pub(crate) enum PossibleFeature<'a> {
3131
None,
3232
}
3333

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

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

0 commit comments

Comments
 (0)