Skip to main content

diagnose_project

Function diagnose_project 

Source
pub fn diagnose_project(
    root: &Path,
    overlay: &HashMap<PathBuf, String>,
) -> ProjectDiagnostics
Expand description

v0.24 (ADR 0052): non-bailing, overlay-aware, file-attributed project diagnostics — the LSP analysis entry point, distinct from compile_project (which bails and emits). overlay maps canonicalised absolute paths to buffer text layered over disk reads.

Slice A: this is the single-tree convenience over diagnose_project_with — it walks root as one tree and consults no manifest, which is what every caller handing in a fixture root already means. A manifest-backed project wants diagnose_project_with(&AnalysisRoots::Project(root), …).