Docs: rustdoc builds the formats and loader crates without warnings #272
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!272
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/272/head"
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?
@SkippySteve on GitHub · 2026-11-24 01:58 UTC · original
SkippySteve/victory-pr-own-next11→main· +2 −2 · 2 files · 1 commits · closed without mergingcargo doc --no-depswarns twice on main, in crates that document on any host:MICROis a private table, so the public module page can't link to it. It stays in code font, without the link.[`prepare()`]. rustdoc resolves it to the function and no longer has to choose between the function and thepreparemodule.The change is two comment lines. No code changes.
Testing (Linux)
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps -p victory-core -p victory-pe -p victory-loader -p victory-formats -p victory-pipeline -p victory-game -p victory-shaderpasses. On main it fails on the two warnings above.cargo clippy -p victory-formats -p victory-loader --all-targets -- -D warningsis clean.cargo test -p victory-formats: 20 passed, 3 ignored.cargo test -p victory-loader: the threeprepare::teststhat parse the test's own binary fail on Linux, both here and on main ("Unknown file magic", because that binary is ELF). This PR doesn't touch them.cargo doc --no-deps warns twice on main for crates that document on any host: warning: public documentation for `texture` links to private item `MICRO` --> crates/victory-formats/src/texture.rs:16:19 warning: `prepare` is both a function and a module --> crates/victory-loader/src/lib.rs:7:10 MICRO is a private table, so the public page cannot link to it; it stays named in code font. In the loader's overview, step 1 means the function, so the link says prepare() and rustdoc resolves it there instead of guessing between it and the module. With both, RUSTDOCFLAGS="-D warnings" cargo doc --no-deps passes for victory-core, -pe, -loader, -formats, -pipeline, -game and -shader. Comments only; no code changes.@SkippySteve on GitHub · 2026-11-24 02:27 UTC · original
Superseded by #315, which now includes this rustdoc fix (same
texture.rs).Pull request closed