Loader: compile unwind_copy only with the diagnostics feature #3785
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3785"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by mrgeda on 2026-11-30T07:08:12Z.
[pr-fix]
Fixes # (no issue: the first Clippy gate itself fails on main)
What it changes
unwind_copyis called only fromstacks.rs, whose module is compiled withdiagnosticsalone (crates/victory-loader/src/lib.rs:42-43). It was movedinto the unconditional
crashmodule, so the default build has no caller forit and
-D warningsstops the first Clippy gate:That is the step main's CI has been failing on since
41adb55(run 46320380085).This adds the
#[cfg(feature = "diagnostics")]the module that calls italready carries.
How it was tested
cargo clippy -p victory-loader --locked -- -D warnings-> dead_code error, reproduced locally on 1.98.1cargo clippy -p victory-loader --locked -- -D warningscargo clippy -p victory-loader --all-features --locked -- -D warningscargo testpassed for the crates it touches: yes (cargo test -p victory-loader --locked, the integration suites: 4 tests, all pass)Separately, the Tests step has an independent red of its own that this change
does not touch:
cargo xtask policyreportscrates/victory-loader/src/heap_sites/frame_users.rs: 2022 hex digits in one run of \x/0x literals. It is the generatedTESTED: &[usize]table (about 300entries, lines 794-1093), which trips
longest_hex_literal_run's 512-digitlimit. The file says "do not edit by hand" and its generator is not in the
tree, so how to present that table (or exempt it) looks like your call; I am
reporting it here rather than loosening the policy.
Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-30T08:55:47Z.
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics, and the CPU tests of the touched code pass. A run on an RTX 4090 is queued. Frame times will follow here.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mrgeda on 2026-11-30T09:11:21Z.
Thanks for merging, and for confirming --profile diag --features diagnostics works as expected—that's the exact path gated by the cfg.
Also, since a 4090 won't hit the low-memory paths, just wanted to mention I can repro the same #3784 issue on my laptop (16 GB RAM / RTX 4050 6 GB), though it stalls even earlier before reaching the scene:
Since it's a tier below the 8 GB / 16 GB setup in #3784, let me know if logs from a 6 GB card would be useful for this batch—I can also run it with VICTORY_HELD_LEVELS=1 and VICTORY_LEVELS_ON_DEMAND=1 like in #3784 if needed. Just sharing the data point here; keeping this PR strictly to the cfg change.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:48:46Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed