Skip to content

Move the Rust toolchain to 1.99.0 - #647

Merged
yansfil merged 3 commits into
mainfrom
ci/rust-1.99
Oct 6, 2026
Merged

yansfil merged 3 commits into
mainfrom
ci/rust-1.99

Conversation

@yansfil

@yansfil yansfil commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Related: #646 (the pin this moves), #650 (prints the toolchain each job runs)

Summary

rust-toolchain.toml moves from 1.98.0 to 1.99.0, the stable the runner images carry since 2026-10-06, with the changes 1.99 asks of the code.
These are the findings that failed -D warnings on every Rust pull request before the toolchain was pinned (run 37498297429):

  • AtomicUsize::fetch_update is deprecated in 1.99, renamed try_update with the same arguments and result: herdr-core/src/remote.rs (the forward-connection cap) and herdr-core/src/labels/tests.rs (the fake provider's timeout budget).
  • Clippy's needless_borrows_for_generic_args: herdr-core/src/changes.rs passed &relative to Option::and_then; the closure borrows only request, so it is Copy, and passing it by value leaves the later call working.

No finding is silenced with allow.

Review

  • 조심해서 볼 파일: herdr-core/src/remote.rs - the cap on concurrent forwarded connections; try_update is the same compare-and-swap loop under a new name.

Evidence

  • 확인한 것: verify run 37507575187, full plan, 17 jobs pass, Clippy -D warnings over the whole workspace included. Every job that built Rust (Linux, Windows MSVC, macOS) had 1.99.0 installed beside the image's 1.98.1; only this file installs 1.99.0, and rustup installs a toolchain only when a call resolves to it. This run does not print the toolchain that ran; with Name the Rust toolchain in each verify-cargo.sh call #650 merged, a rerun's log names it on every verify-cargo.sh call.
  • 확인한 것: test_rust_toolchain_pin.py writes its whole-token probe inside its own temporary folder; 4 tests pass locally with this pin.
  • 확인한 것: rustfmt (1.98.0) accepts the three changed files.
  • 확인하지 못한 것: nothing was built, linted or tested locally on 1.99.0: it is not installed on the workstation, and installing it would add a second toolchain copy for every session there. Clippy and the tests on 1.99.0 in this pull request's CI are the proof.

1.99 renames the atomics' fetch_update to try_update and deprecates the
old name, and Clippy now flags the borrow of a closure passed by value
to Option::and_then. Both already failed -D warnings on runners that
carried 1.99 before the toolchain was pinned.
The whole-token check wrote its probe file under scripts/tests; a test
writes only inside a temporary folder it owns, so restatements now
takes the root its files are named against.
@yansfil
yansfil merged commit 104d308 into main Oct 6, 2026
20 checks passed
@yansfil
yansfil deleted the ci/rust-1.99 branch October 6, 2026 19:21
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