about summary refs log tree commit diff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2024-03-05 08:21:27 -0500
committerAntoni Boucher <bouanto@zoho.com>2024-03-05 08:21:27 -0500
commit1605928023496ee00ef33fa25ebbbd578a67ba99 (patch)
tree1c60fb93e75c58ab87bf0c3f39600ba37d17085c /src/errors.rs
parent1abbf610fee5529ed5d89150741b87def4a7bd9c (diff)
parente4ec64a1c41ca7a662b85f8aabf2e4ae2c40f1cc (diff)
downloadrust-1605928023496ee00ef33fa25ebbbd578a67ba99.tar.gz
rust-1605928023496ee00ef33fa25ebbbd578a67ba99.zip
Merge branch 'master' into sync_from_rust_2024_03_04
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 988a7e1033e..1d3e09d3f9c 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -1,9 +1,8 @@
 use rustc_errors::{
-    DiagCtxt, DiagArgValue, Diag, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
+    DiagCtxt, Diag, EmissionGuarantee, IntoDiagnostic, Level,
 };
 use rustc_macros::{Diagnostic, Subdiagnostic};
 use rustc_span::Span;
-use std::borrow::Cow;
 
 use crate::fluent_generated as fluent;
 
@@ -31,18 +30,6 @@ pub(crate) enum PossibleFeature<'a> {
     None,
 }
 
-struct ExitCode(Option<i32>);
-
-impl IntoDiagnosticArg for ExitCode {
-    fn into_diagnostic_arg(self) -> DiagArgValue {
-        let ExitCode(exit_code) = self;
-        match exit_code {
-            Some(t) => t.into_diagnostic_arg(),
-            None => DiagArgValue::Str(Cow::Borrowed("<signal>")),
-        }
-    }
-}
-
 #[derive(Diagnostic)]
 #[diag(codegen_gcc_lto_not_supported)]
 pub(crate) struct LTONotSupported;
@@ -81,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;