Repository navigation
Docs: rustdoc builds the formats and loader crates without warnings - #272
Closed
SkippySteve wants to merge 1 commit into
Closed
SkippySteve wants to merge 1 commit into
SkippySteve wants to merge 1 commit into
Conversation
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.
This was referenced Nov 24, 2026
Author
|
Superseded by #315, which now includes this rustdoc fix (same |
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.
cargo 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.