fn diagnostic_related_information(
    config: &DiagnosticsMapConfig,
    workspace_root: &AbsPath,
    span: &DiagnosticSpan,
    snap: &GlobalStateSnapshot,
) -> Option<lsp_types::DiagnosticRelatedInformation> {
    let message = span.label.clone()?;
    let location = location(config, workspace_root, span, snap);
    Some(lsp_types::DiagnosticRelatedInformation { location, message })
}
/// Converts a secondary Rust span to a LSP related information
///
/// If the span is unlabelled this will return `None`.
Converts a secondary Rust span to a LSP related information
If the span is unlabelled this will return `None`.
Converts a secondary Rust span to a LSP related information If the span is unlabelled this will return ` None ` .
fn diagnostic_related_information(
    config: &DiagnosticsMapConfig,
    workspace_root: &AbsPath,
    span: &DiagnosticSpan,
    snap: &GlobalStateSnapshot,
) -> Option<lsp_types::DiagnosticRelatedInformation> {
    let message = span.label.clone()?;
    let location = location(config, workspace_root, span, snap);
    Some(lsp_types::DiagnosticRelatedInformation { location, message })
}
fn diagnostic_related_information ( config : & DiagnosticsMapConfig , workspace_root : & AbsPath , span : & DiagnosticSpan , snap : & GlobalStateSnapshot , ) -> Option < lsp_types :: DiagnosticRelatedInformation > { let message = span . label . clone ( ) ? ; let location = location ( config , workspace_root , span , snap ) ; Some ( lsp_types :: DiagnosticRelatedInformation { location , message } ) }
Converts a secondary Rust span to a LSP related information
If the span is unlabelled this will return `None`.
Converts a secondary Rust span to a LSP related information If the span is unlabelled this will return ` None ` .
config
&DiagnosticsMapConfig
workspace_root
&AbsPath
span
&DiagnosticSpan
snap
&GlobalStateSnapshot
config
&DiagnosticsMapConfig
workspace_root
&AbsPath
span
&DiagnosticSpan
snap
&GlobalStateSnapshot