Repository navigation
fix(docs): resolve private-item intra-doc links and check them in CI - #2615
Merged
Merged
Conversation
cargo doc --document-private-items -D warnings failed in 9 crates (13 errors: links to renamed, test-only or feature-gated items, one path not in scope, and `crate::book` naming both a fn and a module). Each is now a resolvable path or a code span. A new "Documentation (private items)" matrix row checks the workspace with all features, rustledger-plugin without default features, and the CLI in its release configuration. Closes #2512 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
📊 Benchmark Results
vs base, measured in this run
A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: What do these numbers mean?
|
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Member
Author
Review loop
The new |
…-links # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
CI builds docs with
cargo doc --all-features --no-deps, which skips private items, so a broken intra-doc link on a private item never failed anything. On main,RUSTDOCFLAGS=-D warnings cargo doc --workspace --all-features --no-deps --document-private-itemsfails in 8 crates with 13 errors. A 9th crate,rustledger-plugin, fails without default features. Each is fixed:render_linessuper::render_lines(re-exported fromformat::align)format_postingpool_total_cost(renamed)Inventory::pool_totalSelf::reduce_from_lot(split into plan/commit)plan_from_lotresult"round_interpolatedcrate::book: both a function and a modulefn@crate::bookrayon::par_iter(not an item)ValidationOptions(not in scope)rustledger_validate::ValidationOptionsLedgerState::grouping_style_for(not in scope)crate::ledger_state::LedgerState::grouping_style_forOptions(not in scope)rustledger_loader::OptionsAccountTypes(not in scope)rustledger_core::AccountTypesregister_wasm_dir(another crate, feature-gated)ImporterRegistry::register_wasm_dircrate::python::is_python_plugin_file_refindispatch.rspython-plugins-onlycrate::PluginManager::register_wasm_dirinwasm_dir_scan.rs, which became ungated in #2593 whilePluginManageris stillwasm-runtime-onlyCI: a new
cimatrix row,Documentation (private items), runscargo doc --no-deps --document-private-itemswithRUSTDOCFLAGS=-Dwarningsfor:rustledger-plugin --no-default-features;rustledger --no-default-features --features mimalloc,ag-rledger, the release configuration.Like every
cirow, it is part of the requiredbuildgate. The plan in the issue was to start with-p rustledger-queryand widen the check crate by crate. Since every crate is fixed here, the check covers the whole workspace from the start.How tested
could not document).rustledger-plugin(default and no default features),rustledger(release configuration),rustledger-loader(default and no default features),rustledger-importer(no default features).actionlint: the same 10 pre-existing findings as main.cargo fmt --checkis clean.Closes #2512
🤖 Generated with Claude Code
https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr