pub trait LoweringDiagnosticsBuilder {
// Required method
fn report_by_location(
&mut self,
location: Location,
kind: LoweringDiagnosticKind,
) -> DiagnosticAdded;
// Provided method
fn report(
&mut self,
stable_ptr: impl Into<SyntaxStablePtrId>,
kind: LoweringDiagnosticKind,
) -> DiagnosticAdded { ... }
}
Required Methods§
fn report_by_location( &mut self, location: Location, kind: LoweringDiagnosticKind, ) -> DiagnosticAdded
Provided Methods§
fn report( &mut self, stable_ptr: impl Into<SyntaxStablePtrId>, kind: LoweringDiagnosticKind, ) -> DiagnosticAdded
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.