Skip to content

fix(docs): clear 9 rustdoc errors blocking nix flake check on develop#181

Merged
stevei101 merged 1 commit into
developfrom
fix/rustdoc-warnings-on-develop
Jun 2, 2026
Merged

fix(docs): clear 9 rustdoc errors blocking nix flake check on develop#181
stevei101 merged 1 commit into
developfrom
fix/rustdoc-warnings-on-develop

Conversation

@stevei101
Copy link
Copy Markdown
Contributor

Summary

develop's nix-check job has been failing on the doc flake check
since shortly after PR #175 merged. Run 26513135868
is the latest example.

The failures are not clippy — they're cargo doc --workspace --no-deps
with RUSTDOCFLAGS=-D warnings (what flake.nix's doc check runs).
9 rustdoc errors across 3 crates and 7 files:

  • broken_intra_doc_links — 10 feature-gated module references in
    graphrag-core/src/rograg/mod.rs (8) and graphrag-core/src/storage/mod.rs (2)
    that don't exist in the default-feature doc build, plus [mode] in
    graphrag-core/src/lib.rs referring to a TOML section name.
  • invalid_html_tagsVec<f32> in graphrag-core/src/vector/mod.rs,
    Box<T> in graphrag-core/src/core/traits.rs, and <file>/<name>/[filter]
    in graphrag-cli/src/commands/mod.rs's slash-command examples.
  • bare_urls — WebLLM URL in graphrag-wasm/src/webllm.rs and the
    HippoRAG arxiv URL in graphrag-core/src/retrieval/hipporag_ppr.rs.

Fixes are mechanical (backticks for code, <...> for URLs, drop link
brackets on feature-gated paths). No code logic changes. 8 files, +20/-20.

Test plan

  • RUSTDOCFLAGS=\"-D warnings\" cargo doc --workspace --no-deps — passes locally on Rust 1.95.0
  • cargo clippy --workspace --all-targets --no-deps -- -D warnings — passes locally
  • cargo fmt --all --check — passes locally
  • CI nix-check job goes green on this PR

Toolchain matches the CI flake (Rust 1.95.0).

🤖 Generated with Claude Code

`cargo doc --workspace --no-deps` with `RUSTDOCFLAGS=-D warnings` (what
`flake.nix`'s `doc` check runs) was failing on develop after PR #175 with
9 rustdoc errors across 3 crates:

- `broken_intra_doc_links` on 10 module references inside
  `rograg/mod.rs` (8 feature-gated submodules) and `storage/mod.rs`
  (2 feature-gated submodules) — these resolve only when the
  `rograg` / `surrealdb-storage` / `incremental` features are on, so
  the default-feature doc build cannot follow them. Switched the doc
  list to plain code spans (no brackets) so the references stay
  human-readable without claiming to be intra-doc links.
- `invalid_html_tags` on `Vec<f32>` (`graphrag-core/src/vector/mod.rs`)
  and `Box<T>` (`graphrag-core/src/core/traits.rs`) — the angle-bracket
  generics were being parsed as HTML tags. Wrapped in backticks.
- `broken_intra_doc_links` on `[mode]` in `graphrag-core/src/lib.rs`,
  referring to a TOML section name — wrapped in backticks to stop
  rustdoc treating it as a link target.
- `bare_urls` on the WebLLM URL in `graphrag-wasm/src/webllm.rs` and
  the HippoRAG arxiv URL in `graphrag-core/src/retrieval/hipporag_ppr.rs`
  — wrapped in `<...>`.
- `invalid_html_tags` on `<file>` / `<name>` and the literal
  `[filter]` token in `graphrag-cli/src/commands/mod.rs`'s slash-command
  examples — wrapped each placeholder in backticks.

Verified locally on Rust 1.95.0 (matches the nix toolchain):

    RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps
    cargo clippy --workspace --all-targets --no-deps -- -D warnings
    cargo fmt --all --check

All three pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stevei101 stevei101 merged commit 7611a4f into develop Jun 2, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants