Skip to content

Commit 8e6884b

Browse files
committed
Rename DiagnosticBuilder as Diag.
Much better! Note that this involves renaming (and updating the value of) `DIAGNOSTIC_BUILDER` in clippy.
1 parent 51bf6b8 commit 8e6884b

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::{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

@@ -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)