Skip to content

Commit 6f54eeb

Browse files
authored
Remove unused structs
1 parent d0ecf0c commit 6f54eeb

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/errors.rs

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
use rustc_errors::{
2-
DiagCtxt, DiagnosticArgValue, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic,
3-
IntoDiagnosticArg, Level,
2+
DiagCtxt, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic, Level,
43
};
54
use rustc_macros::{Diagnostic, Subdiagnostic};
65
use rustc_span::Span;
7-
use std::borrow::Cow;
86

97
use crate::fluent_generated as fluent;
108

@@ -32,18 +30,6 @@ pub(crate) enum PossibleFeature<'a> {
3230
None,
3331
}
3432

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-
4733
#[derive(Diagnostic)]
4834
#[diag(codegen_gcc_lto_not_supported)]
4935
pub(crate) struct LTONotSupported;
@@ -81,12 +67,6 @@ pub(crate) struct CopyBitcode {
8167
#[note]
8268
pub(crate) struct DynamicLinkingWithLTO;
8369

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

0 commit comments

Comments
 (0)