Skip to content

Commit c772b23

Browse files
committed
Auto merge of #3335 - rust-lang:rustup-2024-02-29, r=saethlin
Automatic Rustup
2 parents 3b490bf + 2e8efd0 commit c772b23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
71ffdf7ff7ac6df5f9f64de7e780b8345797e8a0
1+
d3d145ea1cae47ad392173f890577788117da3d9

src/diagnostics.rs

+3-3
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::{DiagnosticBuilder, DiagnosticMessage, Level};
4+
use rustc_errors::{Diag, DiagnosticMessage, Level};
55
use rustc_span::{SpanData, Symbol, DUMMY_SP};
66
use rustc_target::abi::{Align, Size};
77

@@ -100,7 +100,7 @@ impl MachineStopType for TerminationInfo {
100100
}
101101
fn add_args(
102102
self: Box<Self>,
103-
_: &mut dyn FnMut(std::borrow::Cow<'static, str>, rustc_errors::DiagnosticArgValue),
103+
_: &mut dyn FnMut(std::borrow::Cow<'static, str>, rustc_errors::DiagArgValue),
104104
) {
105105
}
106106
}
@@ -459,7 +459,7 @@ pub fn report_msg<'tcx>(
459459
DiagLevel::Warning => Level::Warning,
460460
DiagLevel::Note => Level::Note,
461461
};
462-
let mut err = DiagnosticBuilder::<()>::new(sess.dcx(), level, title);
462+
let mut err = Diag::<()>::new(sess.dcx(), level, title);
463463
err.span(span);
464464

465465
// Show main message.

0 commit comments

Comments
 (0)