[−][src]Trait ra_ap_hir::diagnostics::Diagnostic
Required methods
pub fn code(&self) -> DiagnosticCode
[src]
pub fn message(&self) -> String
[src]
pub fn display_source(&self) -> InFile<SyntaxNodePtr>
[src]
Source element that triggered the diagnostics.
Note that this should reflect "semantics", rather than specific span we
want to highlight. When rendering the diagnostics into an error message,
the IDE will fetch the SyntaxNode
and will narrow the span
appropriately.