Skip to content

Rust: Update Rust toolchain to 1.98 and fix clippy warnings - #22663

Draft
paldepind wants to merge 12 commits into
mainfrom
rust/update-toolchain-1.98
Draft

paldepind wants to merge 12 commits into
mainfrom
rust/update-toolchain-1.98

Conversation

@paldepind

@paldepind paldepind commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This updates the Rust toolchain that we use to 1.98.

1.98 added a new lint rule to Clippy, so I asked Copilot to fix lint errors. It sorta went nuts and linted all our Rust code. But the fixes are good, so I left them in.

@paldepind paldepind changed the title Rust/update toolchain 1.98 Rust: Update Rust toolchain to 1.98 and fix clippy warnings Sep 23, 2026
paldepind and others added 10 commits September 23, 2026 14:58
Update rules_rust to 0.74.0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes the clippy::unnecessary_unwrap lint error reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the clippy::items_after_test_module lint error reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the clippy::needless_late_init lint error reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the clippy::needless_borrows_for_generic_args lint error reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the clippy::needless_borrows_for_generic_args lint errors reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the clippy::needless_borrows_for_generic_args lint error reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the all-targets compilation error exposed while running Clippy with Rust 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the mismatched_lifetime_syntaxes lint error reported by Rust 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Fixes the clippy::unwrap_or_default lint error reported by Clippy 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
@paldepind
paldepind force-pushed the rust/update-toolchain-1.98 branch from d07ce95 to 35d5678 Compare September 23, 2026 13:06
Lock cc to 1.4.6 to fix its Rust 1.98 Windows compilation error.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135
Update cc to 1.4.7, which converts the Windows temporary-file flag to the u32 type required by Rust 1.98.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aaf47101-2cb9-4d38-9f6a-e492c4da4135

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant