Skip to content

docs(knn): drop private intra-doc link that fails rustdoc on main - #9410

Merged
hamersaw merged 1 commit into
lance-format:mainfrom
hamersaw:fix/rustdoc-private-intra-doc-link
Sep 18, 2026
Merged

hamersaw merged 1 commit into
lance-format:mainfrom
hamersaw:fix/rustdoc-private-intra-doc-link

Conversation

@hamersaw

Copy link
Copy Markdown
Contributor

The rustdoc job on main has been failing since #9334 merged:
https://github.com/lance-format/lance/actions/runs/35372502724/job/105689817498

KNNVectorDistanceExec::with_k is public but its doc comment linked to the
crate-private try_new_batch, which RUSTDOCFLAGS="-D warnings" rejects via
rustdoc::private_intra_doc_links. This refers to the constructor with plain
code formatting instead. The failing check was already red on #9334 itself, it
just is not a required check.

Verified locally with RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps,
cargo fmt --all -- --check, and cargo clippy --all --tests --benches -- -D warnings.

🤖 Generated with Claude Code

`KNNVectorDistanceExec::with_k` is public but its doc comment linked to
the crate-private `try_new_batch`, which `-D warnings` rejects via
`rustdoc::private_intra_doc_links`. Refer to the constructor with plain
code formatting instead so `cargo doc --workspace --no-deps` passes again.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 18, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gate recommendation: approve.

Keeping try_new_batch crate-private while rendering its name as code is the minimal fix: it preserves the with_k validation explanation without exposing an internal constructor solely to make rustdoc resolve a link.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 18, 2026
@hamersaw
hamersaw merged commit bcef03c into lance-format:main Sep 18, 2026
38 checks passed
@hamersaw
hamersaw deleted the fix/rustdoc-private-intra-doc-link branch September 18, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants