Skip to content

Commit 427d617

Browse files
committed
Rename DiagnosticArg{,Map,Name,Value} as DiagArg{,Map,Name,Value}.
1 parent 7005ef9 commit 427d617

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/errors.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc_errors::{
2-
DiagCtxt, DiagnosticArgValue, Diag, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
2+
DiagCtxt, DiagArgValue, Diag, EmissionGuarantee, IntoDiagnostic, IntoDiagnosticArg, Level,
33
};
44
use rustc_macros::{Diagnostic, Subdiagnostic};
55
use rustc_span::Span;
@@ -34,11 +34,11 @@ pub(crate) enum PossibleFeature<'a> {
3434
struct ExitCode(Option<i32>);
3535

3636
impl IntoDiagnosticArg for ExitCode {
37-
fn into_diagnostic_arg(self) -> DiagnosticArgValue {
37+
fn into_diagnostic_arg(self) -> DiagArgValue {
3838
let ExitCode(exit_code) = self;
3939
match exit_code {
4040
Some(t) => t.into_diagnostic_arg(),
41-
None => DiagnosticArgValue::Str(Cow::Borrowed("<signal>")),
41+
None => DiagArgValue::Str(Cow::Borrowed("<signal>")),
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)