Skip to content

Commit

Permalink
Rename DiagnosticArg{,Map,Name,Value} as DiagArg{,Map,Name,Value}.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Feb 27, 2024
1 parent 7005ef9 commit 427d617
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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>")),
}
}
}
Expand Down

0 comments on commit 427d617

Please sign in to comment.