Skip to content

Commit 5ea97aa

Browse files
committed
FIX - add not(bootstrap) to renamed diagnostic item
1 parent 3dee351 commit 5ea97aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_errors/src/diagnostic_builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ use std::thread::panicking;
1515

1616
/// Trait implemented by error types. This should not be implemented manually. Instead, use
1717
/// `#[derive(DiagnosticHandler)]` -- see [rustc_macros::DiagnosticHandler].
18-
#[rustc_diagnostic_item = "DiagnosticHandler"]
18+
#[cfg_attr(bootstrap, rustc_diagnostic_item = "SessionDiagnostic")]
19+
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "DiagnosticHandler")]
1920
pub trait DiagnosticHandler<'a, T: EmissionGuarantee = ErrorGuaranteed> {
2021
/// Write out as a diagnostic out of `Handler`.
2122
#[must_use]

0 commit comments

Comments
 (0)