pub trait SemanticDiagnosticsBuilder {
// Required methods
fn report(
&mut self,
stable_ptr: impl Into<SyntaxStablePtrId>,
kind: SemanticDiagnosticKind,
) -> DiagnosticAdded;
fn report_after(
&mut self,
stable_ptr: impl Into<SyntaxStablePtrId>,
kind: SemanticDiagnosticKind,
) -> DiagnosticAdded;
}
Required Methods§
sourcefn report(
&mut self,
stable_ptr: impl Into<SyntaxStablePtrId>,
kind: SemanticDiagnosticKind,
) -> DiagnosticAdded
fn report( &mut self, stable_ptr: impl Into<SyntaxStablePtrId>, kind: SemanticDiagnosticKind, ) -> DiagnosticAdded
Report a diagnostic in the location of the given ptr.
sourcefn report_after(
&mut self,
stable_ptr: impl Into<SyntaxStablePtrId>,
kind: SemanticDiagnosticKind,
) -> DiagnosticAdded
fn report_after( &mut self, stable_ptr: impl Into<SyntaxStablePtrId>, kind: SemanticDiagnosticKind, ) -> DiagnosticAdded
Report a diagnostic in the location after the given ptr (with width 0).
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.