Skip to main content

unresolved_link_diagnostics

Function unresolved_link_diagnostics 

Source
pub fn unresolved_link_diagnostics(
    text: &str,
    path: &Path,
    owner_unit: &str,
    index: &ProjectIndex,
    doc_scope: &HashMap<String, Vec<String>>,
    locals: &[LocalBinding],
    level: Level,
) -> Vec<Diagnostic>
Expand description

A diagnostic for every unresolved doc link in text, a unit’s source whose own name is owner_unit and whose project-relative path is path. Links resolve exactly as document links do (#2454): the attached declaration’s own parts first (locals supplies its parameters), then the unit scope. Empty when level is Off.