Repository navigation
CI: rustc warnings fail the build, except deprecations - #275
Open
sombraSoft wants to merge 1 commit into
Open
sombraSoft wants to merge 1 commit into
sombraSoft wants to merge 1 commit into
Conversation
8 tasks
sombraSoft
marked this pull request as ready for review
November 23, 2026 22:18
The tree builds with 0 rustc warnings except one: Rust 1.100 deprecated `AtomicU32::fetch_update` (renamed `try_update`), used in crates/xcl/src/hle/xgameruntime/mod.rs. CI installs the latest stable, so a new release can deprecate an API at any time and would turn CI red with no change in the tree. RUSTFLAGS=-D warnings -A deprecated on the windows job makes every other rustc warning an error and leaves deprecations as warnings. Only CI sets it, so local builds are unaffected.
sombraSoft
force-pushed
the
ci/deny-warnings
branch
from
November 23, 2026 23:12
8dbe1f7 to
190cc0d
Compare
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.
CI 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 CI: cache Cargo with rust-cache, saved from main only #274 (rust-cache, which keys onRUSTFLAGS) it is paid once, on the firstmainrun. Best merged after CI: cache Cargo with rust-cache, saved from main only #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