Skip to content

Commit 0506ff5

Browse files
committed
Auto merge of #121780 - nnethercote:diag-renaming2, r=davidtwco
Diagnostic renaming 2 A sequel to #121489. r? `@davidtwco`
2 parents c885f06 + 34f6158 commit 0506ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::fmt::{self, Write};
22
use std::num::NonZero;
33

4-
use rustc_errors::{Diag, DiagnosticMessage, Level};
4+
use rustc_errors::{Diag, DiagMessage, Level};
55
use rustc_span::{SpanData, Symbol, DUMMY_SP};
66
use rustc_target::abi::{Align, Size};
77

@@ -95,7 +95,7 @@ impl fmt::Debug for TerminationInfo {
9595
}
9696

9797
impl MachineStopType for TerminationInfo {
98-
fn diagnostic_message(&self) -> DiagnosticMessage {
98+
fn diagnostic_message(&self) -> DiagMessage {
9999
self.to_string().into()
100100
}
101101
fn add_args(

0 commit comments

Comments
 (0)