about summary refs log tree commit diff
diff options
context:
space:
mode:
authorr01and <mu001999@outlook.com>2024-02-29 23:13:09 +0800
committerGitHub <noreply@github.com>2024-02-29 23:13:09 +0800
commit6f54eeb07096645c6b92fc766ffec752c770b594 (patch)
tree38c91d6745cf9f0227af3ce98915fec213af8bc9
parentd0ecf0c262e85876734799c342891845be07e7fb (diff)
downloadrust-6f54eeb07096645c6b92fc766ffec752c770b594.tar.gz
rust-6f54eeb07096645c6b92fc766ffec752c770b594.zip
Remove unused structs
-rw-r--r--src/errors.rs22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 62be9e9b379..6b781f10998 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -1,10 +1,8 @@
 use rustc_errors::{
-    DiagCtxt, DiagnosticArgValue, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic,
-    IntoDiagnosticArg, Level,
+    DiagCtxt, DiagnosticBuilder, EmissionGuarantee, IntoDiagnostic, Level,
 };
 use rustc_macros::{Diagnostic, Subdiagnostic};
 use rustc_span::Span;
-use std::borrow::Cow;
 
 use crate::fluent_generated as fluent;
 
@@ -32,18 +30,6 @@ pub(crate) enum PossibleFeature<'a> {
     None,
 }
 
-struct ExitCode(Option<i32>);
-
-impl IntoDiagnosticArg for ExitCode {
-    fn into_diagnostic_arg(self) -> DiagnosticArgValue {
-        let ExitCode(exit_code) = self;
-        match exit_code {
-            Some(t) => t.into_diagnostic_arg(),
-            None => DiagnosticArgValue::Str(Cow::Borrowed("<signal>")),
-        }
-    }
-}
-
 #[derive(Diagnostic)]
 #[diag(codegen_gcc_lto_not_supported)]
 pub(crate) struct LTONotSupported;
@@ -82,12 +68,6 @@ pub(crate) struct CopyBitcode {
 pub(crate) struct DynamicLinkingWithLTO;
 
 #[derive(Diagnostic)]
-#[diag(codegen_gcc_load_bitcode)]
-pub(crate) struct LoadBitcode {
-    name: String,
-}
-
-#[derive(Diagnostic)]
 #[diag(codegen_gcc_lto_disallowed)]
 pub(crate) struct LtoDisallowed;