UPDATE - rename DiagnosticHandler macro to Diagnostic
This commit is contained in:
@@ -14,9 +14,9 @@ use std::ops::{Deref, DerefMut};
|
||||
use std::thread::panicking;
|
||||
|
||||
/// Trait implemented by error types. This should not be implemented manually. Instead, use
|
||||
/// `#[derive(DiagnosticHandler)]` -- see [rustc_macros::DiagnosticHandler].
|
||||
/// `#[derive(Diagnostic)]` -- see [rustc_macros::Diagnostic].
|
||||
#[cfg_attr(bootstrap, rustc_diagnostic_item = "SessionDiagnostic")]
|
||||
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "DiagnosticHandler")]
|
||||
#[cfg_attr(not(bootstrap), rustc_diagnostic_item = "Diagnostic")]
|
||||
pub trait IntoDiagnostic<'a, T: EmissionGuarantee = ErrorGuaranteed> {
|
||||
/// Write out as a diagnostic out of `Handler`.
|
||||
#[must_use]
|
||||
|
||||
Reference in New Issue
Block a user