XGameRuntime: try_update instead of the deprecated fetch_update #248
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/251"
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 ivall/xcl. Originally posted by mmmharius on 2026-11-23T21:52:55Z.
Rust 1.100 deprecates
AtomicU32::fetch_update(renamedtry_update), so every build of the workspace prints a warning fromXUserCloseHandle(hle/xgameruntime/mod.rs). This is the only use in the repository.try_updatetakes 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.ps1all green (611 passed, 0 failed, 20 ignored).Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T03:04:01Z.
Tested exact head
8e091d7(on its base60565c4).Tested
cargo build --workspace, thenXCL_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.deprecatedwarning;main(and other PR heads built here) warn aboutfetch_updateinxgameruntime/mod.rson Rust 1.100.0.Not tested
scripts/smoke.ps1(no title on this machine), AMD, wave64 hardware, a release build.AI use
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T11:17:11Z.
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