We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dee351 commit 5ea97aaCopy full SHA for 5ea97aa
compiler/rustc_errors/src/diagnostic_builder.rs
@@ -15,7 +15,8 @@ use std::thread::panicking;
15
16
/// Trait implemented by error types. This should not be implemented manually. Instead, use
17
/// `#[derive(DiagnosticHandler)]` -- see [rustc_macros::DiagnosticHandler].
18
-#[rustc_diagnostic_item = "DiagnosticHandler"]
+#[cfg_attr(bootstrap, rustc_diagnostic_item = "SessionDiagnostic")]
19
+#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "DiagnosticHandler")]
20
pub trait DiagnosticHandler<'a, T: EmissionGuarantee = ErrorGuaranteed> {
21
/// Write out as a diagnostic out of `Handler`.
22
#[must_use]
0 commit comments