about summary refs log tree commit diff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-23 14:37:48 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-28 08:55:37 +1100
commit427d6176c5856b0edeb33c46633c8d8acf97affb (patch)
treeafaf30ca044c099ea279f435775792cefa16706a /src/errors.rs
parent7005ef96993d04d1440c310d116fc5373478e361 (diff)
downloadrust-427d6176c5856b0edeb33c46633c8d8acf97affb.tar.gz
rust-427d6176c5856b0edeb33c46633c8d8acf97affb.zip
Rename `DiagnosticArg{,Map,Name,Value}` as `DiagArg{,Map,Name,Value}`.
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/errors.rs b/src/errors.rs
index fd03c5bf37a..988a7e1033e 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -1,5 +1,5 @@
 use rustc_errors::{
-    DiagCtxt, DiagnosticArgValue, Diag, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
+    DiagCtxt, DiagArgValue, Diag, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
 };
 use rustc_macros::{Diagnostic, Subdiagnostic};
 use rustc_span::Span;
@@ -34,11 +34,11 @@ pub(crate) enum PossibleFeature<'a> {
 struct ExitCode(Option<i32>);
 
 impl IntoDiagnosticArg for ExitCode {
-    fn into_diagnostic_arg(self) -> DiagnosticArgValue {
+    fn into_diagnostic_arg(self) -> DiagArgValue {
         let ExitCode(exit_code) = self;
         match exit_code {
             Some(t) => t.into_diagnostic_arg(),
-            None => DiagnosticArgValue::Str(Cow::Borrowed("<signal>")),
+            None => DiagArgValue::Str(Cow::Borrowed("<signal>")),
         }
     }
 }