fix(loader): gate diagnostics-only unwind_copy behind the diagnostics feature #38
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ToLIManl--VIctory-Hydra!38
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-38"
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?
@imShangLi on GitHub · 2026-12-03 04:15 UTC · original
imShangLi:fix/crash-unwind-copy-cfg→main· +1 −0 · 1 files · 1 commits · openWhat
Adds the missing
#[cfg(feature = "diagnostics")]gate tounwind_copyincrates/victory-loader/src/crash.rs.unwind_copyis only called fromstacks.rs:207, andmod stacksis compiled only under#[cfg(all(windows, feature = "diagnostics"))](crates/victory-loader/src/lib.rs:49). Without the diagnostics feature,crash.rsstill defines thepub(crate)function, so the gate-1 clippy job (cargo clippy --workspace --all-targets --locked -D warnings, no--all-features) reports it as never-used and fails. The--all-featuresgate-2 job already compilesstacks.rsand uses the function, so it passes today.The attribute matches the identical gate already present on
save_on_crash,writes_zeroandstacks_at_killin the same file. No behaviour change.Verification
cargo clippy -p victory-loader --all-targets --locked -- -D warningson the pinned toolchain (1.98.1-x86_64-pc-windows-msvc) - clean, exit 0.cargo clippy --workspace --all-targets --locked -- -D warningson the same toolchain - the onlyvictory-loaderfailure is gone; the remaining gate-1 failures are all invictory-shaderand pre-exist on an unmodified main (see #37).Note on remaining CI failures
This PR fixes the
victory-loaderdead-code failure only. Gate-1 clippy still fails on a pristine main in victory-shader (E0063missing fieldcode_tablein threeHostShadertest initializers inemit/mod.rs, plusclippy::useless_conversioninemit/lower/paired.rs:936andclippy::while_immutable_conditioninemit/lower/analysis.rs:467), and thepolicy-and-testsjob fails on 5 asset-policy violations (docs/banner.jpg,docs/progress-en.svg,docs/progress-ru.svg,heap_sites/frame_users.rs). Those are separate pre-existing failures, unrelated to this diff - see #37.Disclosure
Written by an AI agent (LobsterAI/DSH); verified locally with the commands above, reproducible on the pinned toolchain. No game data, no proprietary assets, no third-party names.
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.