ran cargo fix --lib -p xcl (fixs deprecated methods) #3087

Open
Wolf1098 wants to merge 3 commits from upstream-pr/3087 into main
Wolf1098 commented 2026-11-28 02:56:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-28T02:56:00Z.


modified: crates/xcl/src/hle/xgameruntime/mod.rs
changed fetch_update to try_update...

less compile noise

What is in it
cargo fix --lib -p xcl

<!-- greyfinch-sync:ivall/xcl:issue:5535999437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3087). Originally posted by [Wolf1098](https://github.com/Wolf1098) on 2026-11-28T02:56:00Z. --- modified: crates/xcl/src/hle/xgameruntime/mod.rs changed fetch_update to try_update... less compile noise **What is in it** cargo fix --lib -p xcl
Wolf1098 commented 2026-11-28 04:52:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-28T04:52:20Z.


might need rerunning... there was alot of noise added from the 345 incoming commits

<!-- greyfinch-sync:ivall/xcl:comment:7234311149 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3087#issuecomment-7234311149). Originally posted by [Wolf1098](https://github.com/Wolf1098) on 2026-11-28T04:52:20Z. --- might need rerunning... there was alot of noise added from the 345 incoming commits
Foniass commented 2026-12-01 09:28:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:28:28Z.


Triage (#1607) – head e772280

#1696 makes the identical one-line change in xgameruntime/mod.rs:XUserCloseHandle (fetch_update -> try_update), bundled with a wave-mode log that #1410 adds. #1696 is listed for closing as a duplicate of this PR and #1410, so this PR is the one to keep for this change.
The change is partial: this head still calls fetch_update in d3d12x/alloc_pool.rs, d3d12x/real.rs and d3d12x/real/dispatch_chain.rs, so not all of the deprecation warnings the title mentions are gone.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7306752633 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3087#issuecomment-7306752633). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:28:28Z. --- **Triage (#1607)** – head e772280 #1696 makes the identical one-line change in `xgameruntime/mod.rs:XUserCloseHandle` (`fetch_update` -> `try_update`), bundled with a wave-mode log that #1410 adds. #1696 is listed for closing as a duplicate of this PR and #1410, so this PR is the one to keep for this change. The change is partial: this head still calls `fetch_update` in `d3d12x/alloc_pool.rs`, `d3d12x/real.rs` and `d3d12x/real/dispatch_chain.rs`, so not all of the deprecation warnings the title mentions are gone. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-01 10:42:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T10:42:05Z.


Review (head e7722806, diff read, not a merge-check; PR description red):

  • It only covers one of three. fetch_update is still used in alloc_pool.rs ~757 and real.rs ~5161 on main, so the deprecation warnings it targets stay. If the aim is less compile noise, changing all three in one commit (or #[allow(deprecated)] until the minimum toolchain is agreed) would finish the job. try_update needs a newer toolchain than fetch_update; CI builds it, but contributors on an older stable would now fail to compile.
  • #1696 ("fix use-after-move in device init, silence deprecation") silences the same warning; the two should be reconciled.
  • The description lacks the sections PR description checks (Tested, Regression run, Not tested, AI use), and the title isn't in the repository's <Area>: <what it does> style (e.g. XGameRuntime: XUserCloseHandle uses try_update).

Fine: try_update has the same semantics as fetch_update here: the closure always returns Some, so the result is ignored either way.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7308578762 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3087#issuecomment-7308578762). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:42:05Z. --- Review (head e7722806, diff read, not a merge-check; `PR description` red): - **It only covers one of three.** `fetch_update` is still used in `alloc_pool.rs` ~757 and `real.rs` ~5161 on main, so the deprecation warnings it targets stay. If the aim is less compile noise, changing all three in one commit (or `#[allow(deprecated)]` until the minimum toolchain is agreed) would finish the job. `try_update` needs a newer toolchain than `fetch_update`; CI builds it, but contributors on an older stable would now fail to compile. - **#1696** ("fix use-after-move in device init, silence deprecation") silences the same warning; the two should be reconciled. - The description lacks the sections `PR description` checks (Tested, Regression run, Not tested, AI use), and the title isn't in the repository's `<Area>: <what it does>` style (e.g. `XGameRuntime: XUserCloseHandle uses try_update`). Fine: `try_update` has the same semantics as `fetch_update` here: the closure always returns `Some`, so the result is ignored either way. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3087:upstream-pr/3087'
git switch 'upstream-pr/3087'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3087'
git switch 'upstream-pr/3087'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3087'
git switch 'upstream-pr/3087'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3087'
git switch 'main'
git merge --squash 'upstream-pr/3087'
git switch 'main'
git merge --ff-only 'upstream-pr/3087'
git switch 'main'
git merge 'upstream-pr/3087'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3087
No description provided.