Repository navigation
Move the Rust toolchain to 1.99.0 - #647
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #646 (the pin this moves), #650 (prints the toolchain each job runs)
Summary
rust-toolchain.tomlmoves 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 warningson every Rust pull request before the toolchain was pinned (run 37498297429):AtomicUsize::fetch_updateis deprecated in 1.99, renamedtry_updatewith the same arguments and result:herdr-core/src/remote.rs(the forward-connection cap) andherdr-core/src/labels/tests.rs(the fake provider's timeout budget).needless_borrows_for_generic_args:herdr-core/src/changes.rspassed&relativetoOption::and_then; the closure borrows onlyrequest, so it isCopy, 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_updateis the same compare-and-swap loop under a new name.Evidence
-D warningsover 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 everyverify-cargo.shcall.test_rust_toolchain_pin.pywrites its whole-token probe inside its own temporary folder; 4 tests pass locally with this pin.