CI: rustc warnings fail the build, except deprecations #275
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!275
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-275"
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?
@sombraSoft on GitHub · 2026-11-23 22:16 UTC · original
sombraSoft:ci/deny-warnings→main· +5 −2 · 1 files · 1 commits · openCI fails the build on any rustc warning except deprecations. The tree has no other rustc warnings today, so this keeps it that way. Only CI sets
RUSTFLAGS: -D warnings -A deprecated; local builds are unaffected.Deprecations stay warnings because CI installs the latest stable, which can deprecate an API at any time. Rust 1.100 deprecated
AtomicU32::fetch_update(renamed totry_update), which is used incrates/xcl/src/hle/xgameruntime/mod.rs:547. With plain-D warningsthat one line fails CI.Part of #265
What is in it
.github/workflows/ci.yml:RUSTFLAGS: -D warnings -A deprecatedin the windows job'senv, and the header comment lists it among what CI checks.CI time
RUSTFLAGSis part of cargo's fingerprint, so dependencies cached without it are rebuilt, close to a cold build (~+60 s over today's warm 76 s). With the currentactions/cachesetup the cache is never saved again on an exact key hit, so that cost would repeat on every run untilCargo.lockchanges. With #274 (rust-cache, which keys onRUSTFLAGS) it is paid once, on the firstmainrun. Best merged after #274, or together with it.Tested
main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.RUSTFLAGS="-D warnings -A deprecated" cargo +1.100.0 build --workspace --all-targets: succeeds with 0 warnings.-D warnings, failed on 1.100.0 on thefetch_updatedeprecation: https://github.com/sombraSoft/xcl/actions/runs/45276416928Regression run
crates/xcl/srcchange.Not tested
fetch_updatedeprecation is left for a separate source PR, because that one needs a regression run.AI use
@DavidM1911 on GitHub · 2026-11-25 15:14 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.