XGameRuntime: try_update instead of the deprecated fetch_update #251

Closed
github-bot wants to merge 1 commit from gh-pr/251/head into gh-pr/251/base
Owner

@⁠mmmharius on GitHub · 2026-11-23 21:52 UTC · original
mmmharius:fix/atomic-try-update → main · +1 −1 · 1 files · 1 commits · closed without merging

Rust 1.100 deprecates AtomicU32::fetch_update (renamed try_update), so every build of the workspace prints a warning from XUserCloseHandle (hle/xgameruntime/mod.rs). This is the only use in the repository.

try_update takes the same arguments and behaves the same; it is stable since Rust 1.95, so older stable toolchains still build.

Tested on Windows with an NVIDIA RTX 3060, rustc 1.100: the build has no warning left, scripts/test.ps1 all green (611 passed, 0 failed, 20 ignored).

**@⁠mmmharius** on GitHub · 2026-11-23 21:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/251) `mmmharius:fix/atomic-try-update` → `main` · +1 −1 · 1 files · 1 commits · closed without merging Rust 1.100 deprecates `AtomicU32::fetch_update` (renamed `try_update`), so every build of the workspace prints a warning from `XUserCloseHandle` (`hle/xgameruntime/mod.rs`). This is the only use in the repository. `try_update` takes the same arguments and behaves the same; it is stable since Rust 1.95, so older stable toolchains still build. Tested on Windows with an NVIDIA RTX 3060, rustc 1.100: the build has no warning left, `scripts/test.ps1` all green (611 passed, 0 failed, 20 ignored).
Rust 1.100 deprecates AtomicU32::fetch_update (renamed try_update, stable since
1.95), so every build warned. Same arguments and behaviour.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:17:32 +00:00
github-bot closed this pull request 2026-11-26 04:17:32 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 03:04 UTC · original

Tested exact head 8e091d7 (on its base 60565c4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 651 passed, 0 failed, 40 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • The build of this head prints no deprecated warning; main (and other PR heads built here) warn about fetch_update in xgameruntime/mod.rs on Rust 1.100.0.
    Not tested
  • A retail title or scripts/smoke.ps1 (no title on this machine), AMD, wave64 hardware, a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 03:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/251#issuecomment-7120739436) Tested exact head `8e091d7` (on its base `60565c4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4`: **651 passed, 0 failed, 40 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - The build of this head prints no `deprecated` warning; `main` (and other PR heads built here) warn about `fetch_update` in `xgameruntime/mod.rs` on Rust 1.100.0. **Not tested** - A retail title or `scripts/smoke.ps1` (no title on this machine), AMD, wave64 hardware, a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠ivall on GitHub · 2026-11-24 11:17 UTC · original

Closing for now as a standalone deprecation cleanup. Main still uses fetch_update; this close does not imply the change has been applied. Thank you for the contribution.

**@⁠ivall** on GitHub · 2026-11-24 11:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/251#issuecomment-7129900573) Closing for now as a standalone deprecation cleanup. Main still uses fetch_update; this close does not imply the change has been applied. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.