Trait rustc_errors::diagnostic::AddSubdiagnostic
source · pub trait AddSubdiagnostic {
fn add_to_diagnostic(self, diag: &mut Diagnostic);
}
Expand description
Trait implemented by error types. This should not be implemented manually. Instead, use
#[derive(SessionSubdiagnostic)]
– see rustc_macros::SessionSubdiagnostic.
Required Methods
sourcefn add_to_diagnostic(self, diag: &mut Diagnostic)
fn add_to_diagnostic(self, diag: &mut Diagnostic)
Add a subdiagnostic to an existing diagnostic.