- dispatch.rs: qualify [invoke]/[invoke_streaming] as [GatewayDispatch::invoke]/[::invoke_streaming] (module-level docs need the type-qualified path) - byte_adapter.rs: drop redundant explicit link targets for DEFAULT_WS_WRITE_TIMEOUT / DEFAULT_WS_IDLE_TIMEOUT (already re-exported at crate::websocket) - from_wss.rs, byte_adapter.rs: backtick WssSession::drop and the private WsFraming (all-features-only link errors, same class) - Ws pump/timeout module docs spot-checked against WS-13/18/17 impls: no drift found RUSTDOCFLAGS="-D warnings" cargo doc --no-deps now exits clean both default-features and --all-features. docs(tasks): mark review-002-fu-doc-warnings done
2.8 KiB
id, name, status, depends_on, scope, risk, impact, level, tags
| id | name | status | depends_on | scope | risk | impact | level | tags | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| review-002-fu-doc-warnings | Fix cargo-doc warnings (dispatch intra-doc links, byte_adapter redundant link) — restore the -D warnings doc gate | done | single | low | project | implementation |
|
Description
Bracketed follow-up item 4 (stale-doc sweep) resolved to its
residue. Most of the sweep was absorbed by the bulk itself — SRV-11's
router comment was rewritten as part of the fix (adapter.rs now
records the correct axum 0.8 route_layer semantics), and the
deny(missing_docs) gate held through all 43 commits. What remains is
a small doc-gate regression the bulk introduced; the crate's own
standard (from the review-001 HY-02/HY-10 sweep, commit 91483a7) is
RUSTDOCFLAGS="-D warnings" cargo doc fully clean, and it currently
isn't:
dispatch.rs:45+:46— broken intra-doc links[invoke]and[invoke_streaming](added by the PRJ-16 guard doc,207bca4): the methods exist but the link target doesn't resolve from this scope (module-level//!docs need fully-qualified paths, e.g.[GatewayDispatch::invoke](crate::gateway::GatewayDispatch::invoke)— or plain backticks)byte_adapter.rs:671—redundant explicit link targeton[DEFAULT_WS_WRITE_TIMEOUT](crate::websocket::DEFAULT_WS_WRITE_TIMEOUT)(the label already resolves to the same destination; the coordinator flagged this one pre-existing/cosmetic)
Acceptance Criteria
RUSTDOCFLAGS="-D warnings" cargo doc --no-depsexits clean (the review-001 HY-02/HY-10 gate restored)- The dispatch module doc still reads correctly (the reference to
invoke/invoke_streamingreadable whether linked or backticked) - While in the file: spot-check the WS pump/timeout module docs against the WS-13/WS-18/WS-17 implementations (the sweep intent — progress-reset semantics, write-timeout, bare-registry defaults) and fix any statement the bulk's code has overtaken
cargo test,cargo clippy --all-targets -- -D warnings,cargo fmt --checkpass
References
- src/gateway/dispatch.rs:36-52 (the PRJ-16 guard module doc — link source)
- src/websocket/byte_adapter.rs:665-675 (the redundant link), src/websocket/upgrade.rs (bare-registry defaults doc to spot-check)
- tasks/infra/review-001-missing-docs-sweep.md (the doc gate this restores; HY-10 precedent)
- docs/reviews/002-post-remediation-review.md (Unit 4's stale-comment sweep note; bracketed follow-up item 4)
Notes
Trivial, commit-alone. If the sweep's spot-check (third checklist box) finds more than a line or two of drift, split it out rather than widening this commit — the bulk's doc surface was large (ADR-051 §5, ADR-066 §OAI-13, http-adapters.md's matrix) and deserves its own pass if anything significant moved.