Docs: rustdoc builds the GPU crate again (shader_cache's private link) #2016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2018"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Gruzzberry on 2026-11-25T03:12:36Z.
On main (
70564ae),RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --lockedstops at victory-gpu:#675 made rustdoc clean for the loader, GPU and shader crates; the link came back with the translator-keyed shader cache. The fix writes
buildas code, the way #675 did for its siblings. One line of documentation, no code change.What is in it
crates/victory-gpu/src/shader_cache.rs:[`build`]becomes`build`in the module docs.Tested
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --locked --keep-going: fails on main with the error above, builds all crates on the branch.cargo clippy --workspace --all-targets --locked -- -D warningsand the--all-featuresvariant: clean.cargo test --workspace --lockedon main passes except two victory-gpu tests that need a card with a 2^21-descriptor view heap (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views; on NVIDIA's 1,000,000 cap, covered by #1770/#1744). A hosted runner has no card and skips them.Not tested
cargo docwith-D warningscould be a CI step; I left that to you.shader_cache.rs's text is hashed into the translation cache key (ENCODING), so any edit to this file, this one included, makes existing cached shaders translate again once.AI use
Claude Code with Claude Sonnet 5.5 found, wrote and tested this; the user reviewed and opened it.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:33:14Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
rustdoc builds the GPU crate again (shader_cache private link) — docs fix; nice that GPU rustdoc is maintained.
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T03:24:05Z.
Triage verdict — Ready for maintainer decision (
e9cc9f0)Evidence
mainstill links to the privatebuilditem from public module docs. The one-line change keeps the explanation and removes the invalid link. This is the same fix pattern as merged #675, applied to a different link.Checks and limits
Next step
cargo doc --workspace --no-deps --lockedresult with the PR, since that is the check that catches this regression.This verification was AI-assisted.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T09:19:35Z.
Automated triage for the maintainers.
Merge candidate.
crates/victory-gpu/src/shader_cache.rs, module docs:[`build`]becomes`build`.build()is a privatefn, andshader_cacheispub modinlib.rs, so rustdoc reportsprivate_intra_doc_linkshere. With-D warningsthat stopscargo doc. This is the same kind of fix as the merged #675. No other open PR fixes this alone; #2257 includes it in a 117-file bundle. The PR notes that this file's text feeds the shader cache key, so existing cached translations rebuild once. That cost is small but real.CI: passing (
check; rustdoc is not part of CI).Recommending a look, not approving.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T11:09:14Z.
Independent local validation (Windows, Rust 1.100.0/MSVC, head
e9cc9f0, no game data): with$env:RUSTDOCFLAGS='-D warnings', plaincargo doc --locked --workspace --no-depsexits 0 (50s). The+1.100.0override does not work with the Scoop toolchain (no rustup), so plain cargo is the right check here. Deprecation warnings aboutfetch_updateremain but do not fail rustdoc. Since the file text is hashed into the shader cache key, one retranslation is expected. AI-assisted (Hy4 flash). GPU/driver: N/A (docs/rustdoc only). No game data used.upstream-sync referenced this pull request2026-11-25 19:06:34 +00:00
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:13:08Z.
Code review and rustdoc verification at head
e9cc9f001da7merged cleanly ontomain(63bcca43c6a0):crates/victory-gpu/src/shader_cache.rs:3):[`build`]to`build`removes therustdoc::private_intra_doc_linkswarning on the privatefn buildat line 57. (Minor expected side effect: sinceENCODINGhashesinclude_bytes!("shader_cache.rs"), local shader disk cache keys rotate once on merge, which is safe.)cargo xtask policy:191 files okRUSTDOCFLAGS="-D warnings" cargo doc --no-deps --locked -p victory-gpu: 0 warnings (both default and--features diagnostics).LGTM.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.