Skip to content

Replace deprecated atomic update API for Rust 1.99 - #330

Merged
iconidentify merged 1 commit into
mainfrom
fix/atomic-update-api
Oct 4, 2026
Merged

iconidentify merged 1 commit into
mainfrom
fix/atomic-update-api

Conversation

@iconidentify

@iconidentify iconidentify commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

The CI runner now uses Rust 1.99, which deprecates Atomic::fetch_update. Workspace Clippy treats that deprecation as an error, blocking otherwise unrelated fixes such as #329.

Replace the two shell generation-counter calls and the compositor's injected queue-failure counter call with try_update. This is a direct API rename: Rust's implementation forwards fetch_update to try_update (standard-library source). try_update has been stable since Rust 1.95.

The closures, memory orderings, returned previous values, overflow panics, and zero-budget behavior remain identical. No new test is needed for a direct alias replacement; existing generation/stale-menu tests and the injected-failure counter test cover these callers. The polkit changes remain in #329.

Validation

  • cargo +1.99.0 test --locked -p chonk-shell --lib: 298 passed, 3 ignored.
  • cargo +1.99.0 test --locked -p wm-wayland --lib injected_queue_failures_escalate_once_after_the_threshold_and_not_inside_the_backoff: passed.
  • cargo +1.99.0 clippy --locked --workspace --all-targets --no-deps -- -D warnings -D clippy::disallowed_methods -D clippy::disallowed_types -D clippy::undocumented_unsafe_blocks: passed.
  • git diff --check: passed.

All Cargo commands above used an isolated target directory. Workspace tests, X11 runtime checks, full Wayland end-to-end tests, documentation, dependency audit, and Omarchy installation passed in CI. The Debian packaging workflow also passed.

@iconidentify
iconidentify merged commit f9466d8 into main Oct 4, 2026
11 checks passed
@iconidentify iconidentify mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant