Docs: rustdoc builds the GPU crate again (shader_cache's private link) #2018
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2018
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Gruzzberry on GitHub · 2026-11-25 03:12 UTC · original
Gruzzberry:gz/docs-shader-cache-link→main· +1 −1 · 1 files · 1 commits · openOn 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
@jeremygold02 on GitHub · 2026-11-25 03:24 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 09:19 UTC · original
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
@cloph-dsp on GitHub · 2026-11-25 11:09 UTC · original
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.@fuzeofficlal on GitHub · 2026-11-26 01:13 UTC · original
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.