Skip to content

docs: convert ignore doc examples to runnable doctests#409

Merged
shinaoka merged 1 commit intomainfrom
codex/fix-ignore-doctests
Apr 10, 2026
Merged

docs: convert ignore doc examples to runnable doctests#409
shinaoka merged 1 commit intomainfrom
codex/fix-ignore-doctests

Conversation

@shinaoka
Copy link
Copy Markdown
Member

Summary

  • Convert 38 of 39 /// ```ignore doc examples to runnable doctests or no_run across the workspace
  • Only remaining ignore is in tensor4all-capi/src/macros.rs (macro expands to crate-private FFI helpers)
  • All examples now use concrete types (TensorDynLen, DynIndex) with assertions

Test plan

  • cargo test --doc --workspace --release — 33 passed, 0 failed
  • cargo doc --workspace --no-deps — builds successfully
  • cargo clippy --workspace — no errors

🤖 Generated with Claude Code

Replace 38 of 39 `/// ```ignore` doc examples with runnable doctests
or `no_run` across the workspace. The only remaining `ignore` is in
tensor4all-capi/src/macros.rs where the macro expands to crate-private
FFI helpers that cannot compile from an external doctest crate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shinaoka shinaoka enabled auto-merge (squash) April 10, 2026 06:11
@shinaoka shinaoka merged commit 21c2f07 into main Apr 10, 2026
5 checks passed
@shinaoka shinaoka deleted the codex/fix-ignore-doctests branch April 10, 2026 06:14
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.

1 participant